16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 05:29:17 +02:00

serial port input device configuration, additional control commands and minor control logic tweaks

This commit is contained in:
tmj-fstate
2018-02-10 19:53:21 +01:00
parent e9c4714780
commit 0c880f3d4e
16 changed files with 1437 additions and 897 deletions

View File

@@ -201,7 +201,6 @@ gamepad_input::process_axes( glm::vec2 Leftstick, glm::vec2 const &Rightstick, g
reinterpret_cast<std::uint64_t const &>( turnx ),
reinterpret_cast<std::uint64_t const &>( turny ),
GLFW_PRESS,
command_hint::none,
// as we haven't yet implemented either item id system or multiplayer, the 'local' controlled vehicle and entity have temporary ids of 0
// TODO: pass correct entity id once the missing systems are in place
0 );
@@ -219,7 +218,6 @@ gamepad_input::process_axes( glm::vec2 Leftstick, glm::vec2 const &Rightstick, g
reinterpret_cast<std::uint64_t const &>( movex ),
reinterpret_cast<std::uint64_t const &>( movez ),
GLFW_PRESS,
command_hint::none,
0 );
}
}
@@ -249,7 +247,6 @@ gamepad_input::process_mode( float const Value, std::uint16_t const Recipient )
lookup.second,
0, 0,
GLFW_RELEASE,
command_hint::none,
Recipient );
m_modeaccumulator = 0.0f;
}
@@ -263,7 +260,6 @@ gamepad_input::process_mode( float const Value, std::uint16_t const Recipient )
lookup.first,
0, 0,
GLFW_PRESS,
command_hint::none,
Recipient );
m_modeaccumulator -= 1.0f;
}
@@ -275,7 +271,6 @@ gamepad_input::process_mode( float const Value, std::uint16_t const Recipient )
lookup.first,
0, 0,
GLFW_RELEASE,
command_hint::none,
Recipient );
m_modeaccumulator = 0.0f;
}
@@ -289,7 +284,6 @@ gamepad_input::process_mode( float const Value, std::uint16_t const Recipient )
lookup.first,
0, 0,
GLFW_RELEASE,
command_hint::none,
Recipient );
m_modeaccumulator = 0.0f;
}
@@ -303,7 +297,6 @@ gamepad_input::process_mode( float const Value, std::uint16_t const Recipient )
lookup.second,
0, 0,
GLFW_PRESS,
command_hint::none,
Recipient );
m_modeaccumulator += 1.0f;
}
@@ -315,7 +308,6 @@ gamepad_input::process_mode( float const Value, std::uint16_t const Recipient )
lookup.second,
0, 0,
GLFW_RELEASE,
command_hint::none,
Recipient );
m_modeaccumulator = 0.0f;
}