diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-06-08 15:13:11 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-06-08 15:40:27 -0400 |
commit | 7964ef4f59218cdca029662389efe8e6343f9944 (patch) | |
tree | 884196e3eac811041445f933c0cae3d01fde832e /games-rpg/egoboo/files/egoboo-2.8.1-keyboard-inputs.patch | |
parent | games-rpg/egoboo: remove old version (diff) | |
download | gentoo-7964ef4f59218cdca029662389efe8e6343f9944.tar.gz gentoo-7964ef4f59218cdca029662389efe8e6343f9944.tar.bz2 gentoo-7964ef4f59218cdca029662389efe8e6343f9944.zip |
games-rpg/egoboo: EAPI-7 bump, fix inputs
Also:
- prefix support
- don't call CC directly
- tighten sdl deps (game can't start without png/opengl)
- remove .bmp icon, format not supported by xdg
Closes: https://bugs.gentoo.org/654574
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-rpg/egoboo/files/egoboo-2.8.1-keyboard-inputs.patch')
-rw-r--r-- | games-rpg/egoboo/files/egoboo-2.8.1-keyboard-inputs.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/games-rpg/egoboo/files/egoboo-2.8.1-keyboard-inputs.patch b/games-rpg/egoboo/files/egoboo-2.8.1-keyboard-inputs.patch new file mode 100644 index 000000000000..5df3af7c1c5a --- /dev/null +++ b/games-rpg/egoboo/files/egoboo-2.8.1-keyboard-inputs.patch @@ -0,0 +1,12 @@ +Fix being only able move down and right when using keyboard. +https://bugs.gentoo.org/654574 +http://egoboo.sourceforge.net/phpBB3/viewtopic.php?p=61333#p61333 +--- a/src/game/game.c ++++ b/src/game/game.c +@@ -2054,4 +2054,4 @@ + {
+- 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 ) );
+
|