Unverified Commit 3171b10a authored by Jean-Andre Santoni's avatar Jean-Andre Santoni Committed by GitHub
Browse files

5 Players (#214)

parent e66fe797
Pipeline #33590 passed with stages
in 8 minutes and 43 seconds
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "joystick.h" #include "joystick.h"
#include "lutro.h" #include "lutro.h"
static int16_t joystick_cache[4][14]; static int16_t joystick_cache[5][14];
const struct joystick_int_const_map joystick_key_enum[17] = { const struct joystick_int_const_map joystick_key_enum[17] = {
{RETRO_DEVICE_ID_JOYPAD_B, "b"}, {RETRO_DEVICE_ID_JOYPAD_B, "b"},
...@@ -57,7 +57,7 @@ void lutro_joystickevent(lua_State* L) ...@@ -57,7 +57,7 @@ void lutro_joystickevent(lua_State* L)
lua_pushcfunction(L, traceback); lua_pushcfunction(L, traceback);
// Loop through each joystick. // Loop through each joystick.
for (i = 0; i < 4; i++) { for (i = 0; i < 5; i++) {
// Loop through each button. // Loop through each button.
for (u = 0; u < 14; u++) { for (u = 0; u < 14; u++) {
// Retrieve the state of the button. // Retrieve the state of the button.
...@@ -117,7 +117,7 @@ int joystick_getJoystickCount(lua_State *L) ...@@ -117,7 +117,7 @@ int joystick_getJoystickCount(lua_State *L)
} }
// TODO: Query libretro to see device capacities of all joysticks. // TODO: Query libretro to see device capacities of all joysticks.
lua_pushnumber(L, 4); lua_pushnumber(L, 5);
return 1; return 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment