Refactor in preparation of Gamepad support on Windows

This commit is contained in:
loki
2020-01-18 23:52:22 +01:00
parent 474324e1f5
commit 834d5cb59b
6 changed files with 194 additions and 198 deletions

View File

@@ -9,20 +9,10 @@
#include "thread_pool.h"
namespace input {
struct gamepad_state_t {
std::uint16_t buttonFlags;
std::uint8_t lt;
std::uint8_t rt;
std::int16_t lsX;
std::int16_t lsY;
std::int16_t rsX;
std::int16_t rsY;
};
struct input_t {
input_t();
gamepad_state_t gamepad_state;
platf::gamepad_state_t gamepad_state;
std::unordered_map<short, bool> key_press;
std::array<std::uint8_t, 3> mouse_press;