mirror of
https://github.com/BanjoRecomp/BanjoRecomp
synced 2026-05-30 08:26:30 -04:00
c5ecd25a20
* Add and implement all remaining axis inversion settings * Improve third person inversion description, move enum * Fix X axis inversion with analog camera * formatting * Remove boot map patch + fix newlines * invert vanilla camera properly * Fix comment * add more comments * fix demos and add wrapper functions * rename analog camera mode to third person camera mode * Fix first person Y inversion for demos (oops) * Change phrasing * reorder options
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
#ifndef __INPUT_H__
|
|
#define __INPUT_H__
|
|
|
|
#include "patch_helpers.h"
|
|
|
|
typedef enum {
|
|
RECOMP_CAMERA_NORMAL,
|
|
RECOMP_CAMERA_DUALANALOG,
|
|
} RecompCameraMode;
|
|
|
|
typedef enum {
|
|
RECOMP_AIMING_OVERRIDE_OFF = 0,
|
|
RECOMP_AIMING_OVERRIDE_DISABLE_LEFT_STICK = 1,
|
|
RECOMP_AIMING_OVERRIDE_FORCE_RIGHT_STICK = 2
|
|
} RecompAimingOverideMode;
|
|
|
|
extern RecompCameraMode recomp_camera_mode;
|
|
extern RecompAimingOverideMode recomp_aiming_override_mode;
|
|
|
|
DECLARE_FUNC(void, recomp_get_gyro_deltas, float* x, float* y);
|
|
DECLARE_FUNC(void, recomp_get_mouse_deltas, float* x, float* y);
|
|
DECLARE_FUNC(void, recomp_get_inverted_axes, s32* x, s32* y);
|
|
DECLARE_FUNC(s32, recomp_get_analog_cam_enabled);
|
|
DECLARE_FUNC(void, recomp_get_analog_inverted_axes, s32* x, s32* y);
|
|
DECLARE_FUNC(void, recomp_get_flying_and_swimming_inverted_axes, s32* x, s32* y);
|
|
DECLARE_FUNC(void, recomp_get_first_person_inverted_axes, s32* x, s32* y);
|
|
DECLARE_FUNC(void, recomp_get_camera_inputs, float* x, float* y);
|
|
DECLARE_FUNC(void, recomp_set_right_analog_suppressed, s32 suppressed);
|
|
|
|
#endif
|