|
Digimon World 3 decomp
The European version, SLES_039.36
|
Go to the source code of this file.
Macros | |
| #define | DEFAULT_REPEAT_RATE 0x10 |
| The vsyncs a held button takes to repeat, unless initPad is told otherwise. | |
Functions | |
| void | initPad (s32 multitap, s32 repeatRate) |
| Opens the pads (PadInitMtap or PadInitDirect); repeatRate 0 means DEFAULT_REPEAT_RATE. | |
| void | shutdownPad (void) |
| Stops reading the pads and forgets every flag, so the next startPad opens them again. | |
| void | startPad (void) |
| Opens the pads with the defaults if needed, then starts reading them every vsync. | |
| void | stopPad (void) |
| Stops reading the pads every vsync. | |
| void | updatePad (void) |
| Reads every pad, or the demo data while a demo plays. | |
| s32 | setVibration (u16 port, s32 motor, s16 time, u8 value) |
Starts a motor for time vsyncs (0 stops it) | |
| s32 | getPadPressed (s32 pad) |
| The logical buttons newly pressed on pad 1 or 2 this frame. | |
| s32 | getPadHeld (s32 pad) |
| The logical buttons held on pad 1 or 2. | |
| s32 | getPadRepeated (s32 pad) |
| The logical buttons pressed on pad 1 or 2, repeating while held. | |
| void | resetButtonMap (u16 port) |
| Gives a pad slot the default button map, where button i is bit i. | |
| void | swapButtons (u16 port, s32 a, s32 b) |
| Swaps two logical buttons in a pad slot's button map. | |
| s32 | getButtonBit (s32 pad, s32 index) |
The bit that logical button index sets on pad 1 or 2. | |
Variables | |
| PadState | PAD |
| Controller input: cleared by initPad, then the methods. | |
| u8 | DEFAULT_BUTTON_MAP [16] |
| The identity: logical button i is bit i. | |
| #define DEFAULT_REPEAT_RATE 0x10 |
Opens the pads (PadInitMtap or PadInitDirect); repeatRate 0 means DEFAULT_REPEAT_RATE.
Definition at line 8 of file pad.c.
Referenced by startPad().
| void shutdownPad | ( | void | ) |
| void startPad | ( | void | ) |
| void stopPad | ( | void | ) |
Stops reading the pads every vsync.
< PadStartCom done
< PadStartCom done
Definition at line 54 of file pad.c.
Referenced by shutdownPad().
| void updatePad | ( | void | ) |
Starts a motor for time vsyncs (0 stops it)
< the actuators are aligned
Definition at line 98 of file pad.c.
Referenced by startDemoPlayback().
| void resetButtonMap | ( | u16 | port | ) |
| PadState PAD |
Controller input: cleared by initPad, then the methods.
Definition at line 168 of file pad.c.
Referenced by alignActuators(), answerQuitQuestion(), browseOpponentRow(), browseOwnRow(), browsePlayedRow(), CARDGAME_browseHand(), CARDGAME_drawFirstPlayer(), CARDGAME_readChooseInput(), CARDGAME_readCountInput(), CARDGAME_readPickInput(), editBattleDebug(), editProgress(), FIELDSTG_controlClimb(), FIELDSTG_controlFlight(), FIELDSTG_controlPlayer(), FIELDSTG_runGauge(), FIELDSTG_updateTriggers(), FIGHTSTG_stepConfusedMessage(), FIGHTSTG_stepMessage(), FIGHTSTG_updateCommandMenu(), FIGHTSTG_updateConfusedMenu(), FIGHTSTG_updateCursor(), FIGHTSTG_updateDigivolveMenu(), FIGHTSTG_updateItemMenu(), FIGHTSTG_updateSwitchInMenu(), FIGHTSTG_updateSwitchMenu(), FIGHTSTG_updateTechMenu(), getButtonBit(), getPadHeld(), getPadPressed(), getPadRepeated(), initPad(), isDemoPlaying(), isDemoRecording(), lockPadMode(), main(), moveDeckMarker(), moveMenuCursor(), openFieldMenu(), pickEffect(), pickInOpponentRow(), pickInOwnRow(), pollPadState(), readPad(), readPadButtons(), resetButtonMap(), runCameraList(), runFighterList(), runMotionList(), runPlayPage(), runStageList(), setVibration(), SHOCKTST_playPattern(), SHOCKTST_updateEditor(), shutdownPad(), SOUNDTST_playSounds(), SOUNDTST_selectBank(), SOUNDTST_updateScene(), STAGSLCT_updateStageSelect(), STAGSLCT_zoomTitle(), startDemoPlayback(), startPad(), STDWTITL_tickMoviePlayer(), stopDemoPlayback(), stopPad(), swapButtons(), updatePad(), updateTextWindow(), updateVibration(), WFIGHTTS_battleTest(), WFIGHTTS_cameraList(), WFIGHTTS_effectList(), WFIGHTTS_fighterList(), WFIGHTTS_motionList(), and WFIGHTTS_stageList().
| u8 DEFAULT_BUTTON_MAP[16] |
The identity: logical button i is bit i.
Definition at line 178 of file pad.c.
Referenced by resetButtonMap().