aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorD G Turner2019-07-24 21:59:15 +0100
committerD G Turner2019-07-24 22:00:26 +0100
commit2d1b4dc9778856ad981b0d4cd49416e973ba5b9c (patch)
tree0121811fb109c310af8e8aabfd60ff4a63f5096a /common
parentaf850a3e372495fe527be4c81ced3a57cbbe490d (diff)
downloadscummvm-rg350-2d1b4dc9778856ad981b0d4cd49416e973ba5b9c.tar.gz
scummvm-rg350-2d1b4dc9778856ad981b0d4cd49416e973ba5b9c.tar.bz2
scummvm-rg350-2d1b4dc9778856ad981b0d4cd49416e973ba5b9c.zip
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.
Diffstat (limited to 'common')
-rw-r--r--common/events.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/events.h b/common/events.h
index 4b45d530c8..cbd6153e54 100644
--- a/common/events.h
+++ b/common/events.h
@@ -111,6 +111,8 @@ struct JoystickState {
* buttons. See JoystickButton.
*/
int8 button;
+
+ JoystickState() : axis(0), position(0), button(0) {}
};
/**