mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
COMMON: Add Default Values for Joystick State Structure
This ensures that this has a defined value when used without the engine needing to set the field values directly i.e. as per CGE.
This commit is contained in:
parent
af850a3e37
commit
2d1b4dc977
@ -111,6 +111,8 @@ struct JoystickState {
|
||||
* buttons. See JoystickButton.
|
||||
*/
|
||||
int8 button;
|
||||
|
||||
JoystickState() : axis(0), position(0), button(0) {}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user