mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 16:22:41 +02:00
port: implements analog movement for pc controllers port: Implement menu movement with the C stick port: Implement analog leaning port: Implement 1.2 + 1 analog zooming port: pd input lib now handles 32 buttons port: modern crouch implementation port: implement analog slayer airbraking port: xbla farsight strafing Map crouch buttons - map cycle crouch to L3 - sensible 1964-style crouch bindings
62 lines
2.0 KiB
C
62 lines
2.0 KiB
C
#ifndef _IN_LIB_JOY_H
|
|
#define _IN_LIB_JOY_H
|
|
#include <ultra64.h>
|
|
#include "data.h"
|
|
#include "types.h"
|
|
|
|
void joyLockCyclicPolling(void);
|
|
void joyUnlockCyclicPolling(void);
|
|
void joySetPfsPollEnabled(bool enabled);
|
|
bool joyIsPfsPollEnabled(void);
|
|
void joySetPfsPollInterval(s32 value);
|
|
void joySetDefaultPfsPollInterval(void);
|
|
s32 joyShiftPfsStates(void);
|
|
void joyRecordPfsState(u8 pfsstate);
|
|
void joyPollPfs(s32 force);
|
|
void joySetPfsTemporarilyPlugged(s8 index);
|
|
void joyInit(void);
|
|
void joyDisableTemporarily(void);
|
|
void joyReset(void);
|
|
void joy00013e84(void);
|
|
u32 joyGetConnectedControllers(void);
|
|
void joy00014238(void);
|
|
void joyDebugJoy(void);
|
|
s32 joyStartReadData(OSMesgQueue *mq);
|
|
void joyReadData(void);
|
|
void joysHandleRetrace(void);
|
|
void joy00014810(bool value);
|
|
s32 joyGetNumSamples(void);
|
|
s32 joyGetRStickXOnSample(s32 samplenum, s8 contpadnum);
|
|
s32 joyGetRStickYOnSample(s32 samplenum, s8 contpadnum);
|
|
s32 joyGetStickXOnSample(s32 samplenum, s8 contpadnum);
|
|
s32 joyGetStickYOnSample(s32 samplenum, s8 contpadnum);
|
|
s32 joyGetStickYOnSampleIndex(s32 samplenum, s8 contpadnum);
|
|
s32 joyGetRStickYOnSampleIndex(s32 samplenum, s8 contpadnum);
|
|
u32 joyGetButtonsOnSample(s32 samplenum, s8 contpadnum, u32 mask);
|
|
u32 joyGetButtonsPressedOnSample(s32 samplenum, s8 contpadnum, u32 mask);
|
|
s32 joyCountButtonsOnSpecificSamples(u32 *arg0, s8 contpadnum, u32 mask);
|
|
s8 joyGetStickX(s8 contpadnum);
|
|
s8 joyGetStickY(s8 contpadnum);
|
|
s8 joyGetRStickX(s8 contpadnum);
|
|
s8 joyGetRStickY(s8 contpadnum);
|
|
u32 joyGetButtons(s8 contpadnum, u32 mask);
|
|
u32 joyGetButtonsPressedThisFrame(s8 contpadnum, u32 mask);
|
|
bool joyIsCyclicPollingEnabled(void);
|
|
|
|
#if VERSION >= VERSION_NTSC_1_0
|
|
void joyDisableCyclicPolling(void);
|
|
void joyEnableCyclicPolling(void);
|
|
#else
|
|
void joyDisableCyclicPolling(s32 line, char *file);
|
|
void joyEnableCyclicPolling(s32 line, char *file);
|
|
#endif
|
|
|
|
void joyDestroy(void);
|
|
void joyGetContpadNumsForPlayer(s8 playernum, s32 *pad1, s32 *pad2);
|
|
void joyStopRumble(s8 device, bool disablepolling);
|
|
s32 joyGetPakState(s8 device);
|
|
s32 joyGetPakState2(s8 device);
|
|
void joysTickRumble(void);
|
|
|
|
#endif
|