Go to the source code of this file.
◆ JoypadConfigInit()
Apply the joypad configuration array, the press threshold of every controller.
- Parameters
-
- Ghidra address:
- 0x1000ed50
◆ JoypadGetPlayerData()
| JoypadData * JoypadGetPlayerData |
( |
int | iPlayerNum | ) |
|
Report the state of a player's controller.
- Parameters
-
- Returns
- The state.
- Ghidra address:
- 0x1000ed90
◆ JoypadSubscribe()
| void JoypadSubscribe |
( |
MsgSink * | sink | ) |
|
Send the controller messages to a sink.
- Parameters
-
- Ghidra address:
- 0x1000ee10
◆ JoypadUnsubscribe()
| void JoypadUnsubscribe |
( |
MsgSink * | sink | ) |
|
Stop sending the controller messages to a sink.
- Parameters
-
- Ghidra address:
- 0x1000ee20
◆ JoypadAssignPadToPlayer()
| void JoypadAssignPadToPlayer |
( |
int | iPlayerNum, |
|
|
int | iPadNum ) |
Give a controller to a player, or take it from its player.
- Parameters
-
| iPlayerNum | The player, or -1 for none. |
| iPadNum | The controller. |
- Ghidra address:
- 0x1000ee30
◆ JoypadInit()
Create DirectInput and a DIJoypad for each attached joystick, giving joystick n to player n.
- Ghidra address:
- 0x1000b8a0
◆ JoypadTerminate()
Release the joysticks and DirectInput.
- Ghidra address:
- 0x1000b930
◆ kNumJoypads
| const int kNumJoypads = 8 |
◆ kNumPlayers
| const int kNumPlayers = 4 |
◆ gJoypadData
State of each controller.
- Ghidra address:
- 0x10040cf0
◆ gPlayerNumToPadNum
Controller of each player.
- Ghidra address:
- 0x10040ce0
◆ gJoypadMsgSource
Source of the controller messages.
- Ghidra address:
- 0x100410f0