SSBM Decomp
Loading...
Searching...
No Matches
pad.h
Go to the documentation of this file.
1
#ifndef _PAD_H_
2
#define _PAD_H_
3
4
#include <
platform.h
>
5
6
#include <
dolphin/pad/forward.h
>
7
8
#include <
dolphin/os.h
>
9
#include <
dolphin/os/OSContext.h
>
10
11
#define PAD_CHAN0 0
12
#define PAD_CHAN1 1
13
#define PAD_CHAN2 2
14
#define PAD_CHAN3 3
15
#define PAD_CHANMAX 4
16
17
#define PAD_CHAN0_BIT 0x80000000
18
#define PAD_CHAN1_BIT 0x40000000
19
#define PAD_CHAN2_BIT 0x20000000
20
#define PAD_CHAN3_BIT 0x10000000
21
22
#define PAD_ERR_NO_CONTROLLER -1
23
#define PAD_ERR_NONE 0
24
25
#define PAD_SPEC_2 2
26
27
struct
PADStatus
{
28
u16
button
;
29
s8
stickX
;
30
s8
stickY
;
31
s8
substickX
;
32
s8
substickY
;
33
u8
triggerLeft
;
34
u8
triggerRight
;
35
u8
analogA
;
36
u8
analogB
;
37
s8
err
;
38
};
39
40
extern
u32
__PADFixBits
;
41
42
void
PADControlMotor
(
int
chan,
u32
command
);
43
void
VISetBlack
(
bool
);
44
u32
VIGetRetraceCount
(
void
);
45
void
PADClamp
(
PADStatus
*);
46
void
PADRead
(
PADStatus
*);
47
void
PADReset
(
u32
);
48
void
PADTypeAndStatusCallback
(
s32
chan,
u32
type);
49
void
PADSetSpec
(
s32
);
50
void
PADInit
(
void
);
51
bool
__PADDisableRecalibration
(
bool
);
52
void
PADRecalibrate
(
s32
);
53
54
void
PADOriginCallback
(
s32
unused0,
s32
arg1);
55
void
PADOriginUpdateCallback
(
s32
chan,
u32
error
,
OSContext
* context);
56
void
PADProbeCallback
(
s32
chan,
u32
error
,
OSContext
* context);
57
void
UpdateOrigin
(
s32
arg0);
58
59
#endif
OSContext.h
command
u32 command
Definition
OSSerial.c:89
forward.h
error
u32 error
Definition
dvd.c:3
os.h
PADClamp
void PADClamp(PADStatus *)
Definition
PadClamp.c:91
PADTypeAndStatusCallback
void PADTypeAndStatusCallback(s32 chan, u32 type)
PADProbeCallback
void PADProbeCallback(s32 chan, u32 error, OSContext *context)
Definition
pad.c:155
PADSetSpec
void PADSetSpec(s32)
VIGetRetraceCount
u32 VIGetRetraceCount(void)
__PADDisableRecalibration
bool __PADDisableRecalibration(bool)
__PADFixBits
u32 __PADFixBits
PADOriginUpdateCallback
void PADOriginUpdateCallback(s32 chan, u32 error, OSContext *context)
Definition
pad.c:138
PADRead
void PADRead(PADStatus *)
PADOriginCallback
void PADOriginCallback(s32 unused0, s32 arg1)
Definition
pad.c:122
UpdateOrigin
void UpdateOrigin(s32 arg0)
Definition
pad.c:71
PADReset
void PADReset(u32)
PADControlMotor
void PADControlMotor(int chan, u32 command)
PADRecalibrate
void PADRecalibrate(s32)
VISetBlack
void VISetBlack(bool)
PADInit
void PADInit(void)
platform.h
s8
signed char s8
A signed 8-bit integer.
Definition
platform.h:8
u32
unsigned long u32
An unsigned 32-bit integer.
Definition
platform.h:26
u16
unsigned short u16
An unsigned 16-bit integer.
Definition
platform.h:23
s32
signed long s32
A signed 32-bit integer.
Definition
platform.h:14
u8
unsigned char u8
An unsigned 8-bit integer.
Definition
platform.h:20
OSContext
Definition
OSContext.h:133
PADStatus
Definition
pad.h:27
PADStatus::triggerLeft
u8 triggerLeft
Definition
pad.h:33
PADStatus::stickY
s8 stickY
Definition
pad.h:30
PADStatus::substickY
s8 substickY
Definition
pad.h:32
PADStatus::stickX
s8 stickX
Definition
pad.h:29
PADStatus::analogA
u8 analogA
Definition
pad.h:35
PADStatus::triggerRight
u8 triggerRight
Definition
pad.h:34
PADStatus::button
u16 button
Definition
pad.h:28
PADStatus::analogB
u8 analogB
Definition
pad.h:36
PADStatus::substickX
s8 substickX
Definition
pad.h:31
PADStatus::err
s8 err
Definition
pad.h:37
src
dolphin
pad
pad.h
Generated by
1.9.8