mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Cleans up Controllers
Renames VirtualController to DummyController. Makes controller axis treated the same as buttons. Made Controller class members private or protected Made Controller class treat deadzones, sensitivities, and press thresholds consistently.
This commit is contained in:
parent
791f7774a5
commit
094388187f
13 changed files with 413 additions and 362 deletions
|
@ -1410,8 +1410,8 @@ s32 Camera_Noop(Camera* camera) {
|
|||
}
|
||||
|
||||
s32 SetCameraManual(Camera* camera) {
|
||||
f32 newCamX = -D_8015BD7C->state.input[0].cur.cam_x;
|
||||
f32 newCamY = D_8015BD7C->state.input[0].cur.cam_y;
|
||||
f32 newCamX = -D_8015BD7C->state.input[0].cur.cam_x * 10.0f;
|
||||
f32 newCamY = D_8015BD7C->state.input[0].cur.cam_y * 10.0f;
|
||||
|
||||
if ((fabsf(newCamX) >= 15.0f || fabsf(newCamY) >= 15.0f) && camera->globalCtx->manualCamera == false) {
|
||||
camera->globalCtx->manualCamera = true;
|
||||
|
@ -1479,8 +1479,8 @@ s32 Camera_Free(Camera* camera) {
|
|||
|
||||
camera->animState = 1;
|
||||
|
||||
f32 newCamX = -D_8015BD7C->state.input[0].cur.cam_x;
|
||||
f32 newCamY = D_8015BD7C->state.input[0].cur.cam_y;
|
||||
f32 newCamX = -D_8015BD7C->state.input[0].cur.cam_x * 10.0f;
|
||||
f32 newCamY = D_8015BD7C->state.input[0].cur.cam_y * 10.0f;
|
||||
|
||||
camera->globalCtx->camX += newCamX;
|
||||
camera->globalCtx->camY += newCamY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue