Commit 7ff79953 authored by Jean-Andre Santoni's avatar Jean-Andre Santoni
Browse files

6 players

parent 3171b10a
Pipeline #34029 passed with stages
in 9 minutes and 44 seconds
......@@ -6,7 +6,7 @@
#include "joystick.h"
#include "lutro.h"
static int16_t joystick_cache[5][14];
static int16_t joystick_cache[6][14];
const struct joystick_int_const_map joystick_key_enum[17] = {
{RETRO_DEVICE_ID_JOYPAD_B, "b"},
......@@ -57,7 +57,7 @@ void lutro_joystickevent(lua_State* L)
lua_pushcfunction(L, traceback);
// Loop through each joystick.
for (i = 0; i < 5; i++) {
for (i = 0; i < 6; i++) {
// Loop through each button.
for (u = 0; u < 14; u++) {
// Retrieve the state of the button.
......@@ -117,7 +117,7 @@ int joystick_getJoystickCount(lua_State *L)
}
// TODO: Query libretro to see device capacities of all joysticks.
lua_pushnumber(L, 5);
lua_pushnumber(L, 6);
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