mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Don't include analog when not enabled in ctrl.
Fixes menu, movement in Tales of Eternia.
This commit is contained in:
1 parent
8509fda380
commit
bf8abaebe5
1 file changed
+7
-1
@@ -157,7 +157,13 @@ u32 sceCtrlReadBufferPositive(u32 ctrlDataPtr, u32 nBufs)
|
||||
//if (ctrlInited)
|
||||
//{
|
||||
SampleControls();
|
||||
Memory::WriteStruct(ctrlDataPtr, &ctrl);
|
||||
_ctrl_data *ctrlData = (_ctrl_data*) Memory::GetPointer(ctrlDataPtr);
|
||||
memcpy(ctrlData, &ctrl, sizeof(_ctrl_data));
|
||||
if (!analogEnabled)
|
||||
{
|
||||
ctrlData->analog[0] = 128;
|
||||
ctrlData->analog[1] = 128;
|
||||
}
|
||||
//}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user