MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / IsLegacyGamepadCode

Function IsLegacyGamepadCode

engine/Poseidon/Input/InputProfile.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace
14{
15bool IsLegacyGamepadCode(int packedCode)
16{
17 const int dev = packedCode & INPUT_DEVICE_MASK;
18 return dev == INPUT_DEVICE_STICK || dev == INPUT_DEVICE_STICK_AXIS || dev == INPUT_DEVICE_STICK_POV;
19}
20} // namespace
21
22void InputProfile::Bind(UserAction action, InputCode code)

Callers 1

LoadDefaultsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected