mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 17:18:53 +00:00
Merge pull request #8155 from Techjar/dtm-get-origin
Core/Movie: Store PAD_GET_ORIGIN bit in ControllerState
This commit is contained in:
commit
3b7a7ae2e7
2 changed files with 7 additions and 1 deletions
|
@ -804,6 +804,8 @@ void CheckPadStatus(const GCPadStatus* PadStatus, int controllerID)
|
|||
|
||||
s_padState.is_connected = PadStatus->isConnected;
|
||||
|
||||
s_padState.get_origin = (PadStatus->button & PAD_GET_ORIGIN) != 0;
|
||||
|
||||
s_padState.disc = s_bDiscChange;
|
||||
s_bDiscChange = false;
|
||||
s_padState.reset = s_bReset;
|
||||
|
@ -1183,6 +1185,10 @@ void PlayController(GCPadStatus* PadStatus, int controllerID)
|
|||
PadStatus->button |= PAD_TRIGGER_L;
|
||||
if (s_padState.R)
|
||||
PadStatus->button |= PAD_TRIGGER_R;
|
||||
|
||||
if (s_padState.get_origin)
|
||||
PadStatus->button |= PAD_GET_ORIGIN;
|
||||
|
||||
if (s_padState.disc)
|
||||
{
|
||||
Core::RunAsCPUThread([] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue