mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-09-19 05:53:00 -05:00
Add basic infrastructure for JoyStick support
This commit is contained in:
@@ -44,11 +44,15 @@ struct PACKED VideoOutputData {
|
||||
#pragma pack(pop)
|
||||
|
||||
struct SFEvent {
|
||||
SFEvent(sf::Event::EventType type, sf::Keyboard::Key code, uint32_t unicode) : type(type), code(code), unicode(unicode) {}
|
||||
SFEvent(sf::Event::EventType type, sf::Keyboard::Key code, uint32_t unicode, uint32_t joystickId, uint32_t button, sf::Joystick::Axis axis, float position) : type(type), code(code), unicode(unicode), joystickId(joystickId), button(button), axis(axis), position(position) {}
|
||||
|
||||
sf::Event::EventType type;
|
||||
sf::Keyboard::Key code;
|
||||
uint32_t unicode;
|
||||
uint32_t joystickId;
|
||||
uint32_t button;
|
||||
sf::Joystick::Axis axis;
|
||||
float position;
|
||||
};
|
||||
|
||||
struct out_rect_data {
|
||||
|
||||
Reference in New Issue
Block a user