diff options
author | SanskritFritz | 2015-06-14 00:39:50 +0200 |
---|---|---|
committer | SanskritFritz | 2015-06-14 00:39:50 +0200 |
commit | ae738bb2282c95719902ab65d58e66e3296ea9f6 (patch) | |
tree | 07b96c5d3c88c8c55bd6500ceedbdd5a2bb4f6ae /keyboard_directions.patch | |
download | aur-egoboo.tar.gz |
Initial import
Diffstat (limited to 'keyboard_directions.patch')
-rw-r--r-- | keyboard_directions.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/keyboard_directions.patch b/keyboard_directions.patch new file mode 100644 index 000000000000..d31d0af5316b --- /dev/null +++ b/keyboard_directions.patch @@ -0,0 +1,13 @@ +--- game/game.1.c 2010-12-22 20:33:14.000000000 +0100
++++ game/game.c 2013-11-28 00:22:58.405945051 +0100
+@@ -2052,8 +2052,8 @@
+ if (( CAM_TURN_GOOD == PCamera->turn_mode && 1 == local_numlpla ) ||
+ !control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_CAMERA ) )
+ {
+- joy_pos.x = ( control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_RIGHT ) - control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_LEFT ) );
+- joy_pos.y = ( control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_DOWN ) - control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_UP ) );
++ joy_pos.x = ( (int)control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_RIGHT ) - (int)control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_LEFT ) );
++ joy_pos.y = ( (int)control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_DOWN ) - (int)control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_UP ) );
+
+ if ( CAM_TURN_GOOD == PCamera->turn_mode &&
+ 1 == local_numlpla ) joy_pos.x = 0;
|