Move logic away from platform dependend code

This commit is contained in:
loki
2019-12-22 21:24:50 +01:00
parent e4c81c3a97
commit 0deb5433d1
5 changed files with 204 additions and 93 deletions

View File

@@ -8,9 +8,25 @@
#include "platform/common.h"
namespace input {
void print(void *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;
};
void passthrough(platf::input_t &, void *input);
struct input_t {
input_t();
gamepad_state_t gamepad_state;
platf::input_t input;
};
void print(void *input);
void passthrough(input_t &, void *input);
}
#endif //SUNSHINE_INPUT_H