AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
LuxInputMode.h File Reference

which input the player used last (gamepad or keyboard/mouse), so prompts and dialogs show matching buttons. More...

Go to the source code of this file.

Functions

bool LuxNextInputMode (bool abGamepadMode, bool abPadActivity, bool abKbmActivity)
bool LuxInputModeOnPadChange (bool abGamepadMode, bool abHadPad, bool abHasPad)
 A controller appearing (at start or plugged in) switches to gamepad mode; losing it switches back.
bool LuxStickActive (float afValue)
 Stick deflection beyond the dead zone counts as gamepad use.

Detailed Description

which input the player used last (gamepad or keyboard/mouse), so prompts and dialogs show matching buttons.

Unit tested in tests/cpp/test_input_mode.cpp.

Definition in file LuxInputMode.h.

Function Documentation

◆ LuxNextInputMode()

bool LuxNextInputMode ( bool abGamepadMode,
bool abPadActivity,
bool abKbmActivity )
inline

Definition at line 8 of file LuxInputMode.h.

◆ LuxInputModeOnPadChange()

bool LuxInputModeOnPadChange ( bool abGamepadMode,
bool abHadPad,
bool abHasPad )
inline

A controller appearing (at start or plugged in) switches to gamepad mode; losing it switches back.

Definition at line 16 of file LuxInputMode.h.

◆ LuxStickActive()

bool LuxStickActive ( float afValue)
inline

Stick deflection beyond the dead zone counts as gamepad use.

Definition at line 24 of file LuxInputMode.h.