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:
D G Turner 2019-07-24 21:59:15 +01:00
parent af850a3e37
commit 2d1b4dc977

View File

@ -111,6 +111,8 @@ struct JoystickState {
* buttons. See JoystickButton.
*/
int8 button;
JoystickState() : axis(0), position(0), button(0) {}
};
/**