MCPcopy Create free account
hub / github.com/DavidColson/Polybox / Axis

Class Axis

source/input.cpp:3–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Copyright David Colson. All rights reserved.
2
3struct Axis {
4 f32 axisValue { 0.0f };
5
6 bool ignoreVirtual { false };
7 bool isMouseDriver { false };
8
9 // Virtual axis input state
10 bool positiveInput { false };
11 bool negativeInput { false };
12
13 // Virtual axis mapping
14 SDL_Keycode positiveScanCode { SDLK_UNKNOWN };
15 SDL_Keycode negativeScanCode { SDLK_UNKNOWN };
16 i32 positiveMouseButton { 0 };
17 i32 negativeMouseButton { 0 };
18};
19
20struct InputState {
21 Arena* pArena;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected