Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
PadState Struct Reference

Controller input (PAD) More...

#include <engine/pad.h>

Collaboration diagram for PadState:
[legend]

Data Fields

s32 flags
 
PadBuffer buf [2]
 
PadSlot slots [2][4]
 
u8 act [2][6]
 
s16 repeatRate
 vsyncs
 
s16 demoPad
 
PadBuffer * demoData
 a buffer a frame
 
s16 demoFrame
 
void(* init )()
 PAD_INIT.
 
void(* shutdown )()
 
void(* update )()
 PAD_UPDATE.
 
s32(* setVibration )(u16 port, s32 motor, s16 time, u8 value)
 
s32(* lockMode )(s32 port, s32 lock)
 
s32(* getPressed )(s32 pad)
 
s32(* getHeld )(s32 pad)
 
s32(* getRepeated )(s32 pad)
 
void(* resetButtonMap )(u16 port)
 
void(* swapButtons )(u16 port, s32 a, s32 b)
 
s32(* getButtonBit )(s32 pad, s32 button)
 
s32(* startDemoRecording )()
 
void(* stopDemoRecording )()
 
s32(* isDemoRecording )()
 
s32(* startDemoPlayback )(s16 pad, PadBuffer *data)
 
void(* stopDemoPlayback )()
 
s32(* isDemoPlaying )()
 

Detailed Description

Controller input (PAD)

Definition at line 111 of file pad.h.

Field Documentation

◆ flags

◆ buf

PadBuffer PadState::buf[2]

Definition at line 113 of file pad.h.

Referenced by initPad(), and updatePad().

◆ slots

◆ act

u8 PadState::act[2][6]

Definition at line 115 of file pad.h.

Referenced by alignActuators(), initPad(), setVibration(), and updateVibration().

◆ repeatRate

s16 PadState::repeatRate

vsyncs

Definition at line 116 of file pad.h.

Referenced by initPad(), and readPadButtons().

◆ demoPad

s16 PadState::demoPad

◆ demoData

PadBuffer* PadState::demoData

a buffer a frame

Definition at line 118 of file pad.h.

Referenced by startDemoPlayback(), stopDemoPlayback(), and updatePad().

◆ demoFrame

s16 PadState::demoFrame

Definition at line 119 of file pad.h.

Referenced by startDemoPlayback(), stopDemoPlayback(), and updatePad().

◆ init

void(* PadState::init) ()

PAD_INIT.

Definition at line 120 of file pad.h.

Referenced by main().

◆ shutdown

void(* PadState::shutdown) ()

Definition at line 121 of file pad.h.

◆ update

void(* PadState::update) ()

PAD_UPDATE.

Definition at line 122 of file pad.h.

Referenced by main().

◆ setVibration

s32(* PadState::setVibration) (u16 port, s32 motor, s16 time, u8 value)

Definition at line 123 of file pad.h.

Referenced by SHOCKTST_playPattern(), and SHOCKTST_updateEditor().

◆ lockMode

s32(* PadState::lockMode) (s32 port, s32 lock)

Definition at line 124 of file pad.h.

◆ getPressed

◆ getHeld

◆ getRepeated

◆ resetButtonMap

void(* PadState::resetButtonMap) (u16 port)

Definition at line 128 of file pad.h.

◆ swapButtons

void(* PadState::swapButtons) (u16 port, s32 a, s32 b)

Definition at line 129 of file pad.h.

◆ getButtonBit

◆ startDemoRecording

s32(* PadState::startDemoRecording) ()

Definition at line 131 of file pad.h.

◆ stopDemoRecording

void(* PadState::stopDemoRecording) ()

Definition at line 132 of file pad.h.

◆ isDemoRecording

s32(* PadState::isDemoRecording) ()

Definition at line 133 of file pad.h.

◆ startDemoPlayback

s32(* PadState::startDemoPlayback) (s16 pad, PadBuffer *data)

Definition at line 134 of file pad.h.

◆ stopDemoPlayback

void(* PadState::stopDemoPlayback) ()

Definition at line 135 of file pad.h.

◆ isDemoPlaying

s32(* PadState::isDemoPlaying) ()

Definition at line 136 of file pad.h.


The documentation for this struct was generated from the following file: