Zelda64Recomp/patches/camera_patches.h
Wiseguy 3c34fa63c1
Adds analog camera and other controller options (#264)
* Added analog cam and camera inversion options to menu, initial implementation of analog cam
* Automatically suppress inputs on the right stick while analog cam is active
* Return to automatic camera mode when pressing target
* Add aiming inversion options
* Add analog camera inversion options
2024-05-26 09:34:26 -04:00

16 lines
593 B
C

#ifndef __CAMERA_PATCHES_H__
#define __CAMERA_PATCHES_H__
#include "z64camera.h"
#define RELOAD_PARAMS(camera) ((camera->animState == 0) || (camera->animState == 10) || (camera->animState == 20))
#define CAM_RODATA_SCALE(x) ((x)*100.0f)
#define CAM_RODATA_UNSCALE(x) ((x)*0.01f)
// Load the next value from camera read-only data stored in CameraModeValue
#define GET_NEXT_RO_DATA(values) ((values++)->val)
// Load the next value and scale down from camera read-only data stored in CameraModeValue
#define GET_NEXT_SCALED_RO_DATA(values) CAM_RODATA_UNSCALE(GET_NEXT_RO_DATA(values))
#endif