mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
PS3: Try to fix controllers input issue
This commit is contained in:
parent
65575a2253
commit
6dcd418acb
1 changed files with 5 additions and 4 deletions
|
@ -18,8 +18,6 @@
|
|||
#include <sysutil/video.h>
|
||||
|
||||
static cc_bool launcherMode;
|
||||
static padInfo pad_info;
|
||||
static padData pad_data;
|
||||
static KbInfo kb_info;
|
||||
static KbData kb_data;
|
||||
static KbConfig kb_config;
|
||||
|
@ -274,6 +272,9 @@ void Window_DisableRawMouse(void) { Input.RawMode = false; }
|
|||
/*########################################################################################################################*
|
||||
*-------------------------------------------------------Gamepads----------------------------------------------------------*
|
||||
*#########################################################################################################################*/
|
||||
static padInfo pad_info;
|
||||
static padData pad_data[MAX_PORT_NUM];
|
||||
|
||||
void Gamepads_Init(void) {
|
||||
Input.Sources |= INPUT_SOURCE_GAMEPAD;
|
||||
ioPadInit(MAX_PORT_NUM);
|
||||
|
@ -326,10 +327,10 @@ void Gamepads_Process(float delta) {
|
|||
for (int i = 0; i < MAX_PORT_NUM; i++)
|
||||
{
|
||||
if (!pad_info.status[i]) continue;
|
||||
ioPadGetData(i, &pad_data);
|
||||
ioPadGetData(i, &pad_data[i]);
|
||||
|
||||
int port = Gamepad_Connect(0x503 + i, PadBind_Defaults);
|
||||
ProcessPadInput(port, delta, &pad_data);
|
||||
ProcessPadInput(port, delta, &pad_data[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue