Can only move down and right.
Moderator: Developers
- Zefz
- Squirrel Knight (Administrator)
- Posts: 3820
- Joined: Wed Jul 23, 2008 1:27 am
- Location: Norway
- Contact:
Re: Can only move down and right.
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.
Ok, I will wait. I'm happy to hear it will be fixed.
Re: Can only move down and right.
Casting as integers works.
So instead of a patch, change the two lines 2055 and 2056 from game.c :
To this :
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 ) );
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 ) );