Page 2 of 2
Re: Can only move down and right.
Posted: Sun Jun 26, 2011 11:37 am
by Zefz
Wait for the next release. This problem has been fixed in the repository but the code is not completely stable for a release yet. We are working on it, but progress is slow.
Re: Can only move down and right.
Posted: Mon Jun 27, 2011 6:10 pm
by Zommes
Ok, I will wait. I'm happy to hear it will be fixed.
Re: Can only move down and right.
Posted: Fri Mar 02, 2012 8:47 pm
by Pozzo
Casting as integers works.
So instead of a patch, change the two lines 2055 and 2056 from game.c :
Code: Select all
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 ) );
To this :
Code: Select all
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 ) );