initial import
This commit is contained in:
13
egoboo/keyboard_directions.patch
Normal file
13
egoboo/keyboard_directions.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- a/game/game.c 2010-12-22 20:33:14.000000000 +0100
|
||||
+++ b/game/game.c 2021-08-30 16:15:34.532916271 +0200
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user