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

gamepad control of the profile window (the stock window was mouse-only in practice). More...

Go to the source code of this file.

Enumerations

enum  eLuxProfilePad {
  eLuxProfilePad_None , eLuxProfilePad_Select , eLuxProfilePad_Create , eLuxProfilePad_Delete ,
  eLuxProfilePad_Back
}

Functions

int LuxProfilePadAction (int alUIButton)
int LuxListStep (int alCurrent, int alCount, int alDir)
 Next selected row for an up (-1) / down (+1) press, clamped to the list.

Variables

static const int kLuxUIPrimary = 1 << 0
static const int kLuxUISecondary = 1 << 1
static const int kLuxUIPrevPage = 1 << 2
static const int kLuxUINextPage = 1 << 3
static const int kLuxUIDelete = 1 << 5
static const int kLuxUIClear = 1 << 6

Detailed Description

gamepad control of the profile window (the stock window was mouse-only in practice).

Pure mapping, unit tested in tests/cpp/test_profile_pad.cpp. The flag values mirror hpl::eUIButton (checked by static_asserts in LuxMainMenu_Profile.cpp).

Definition in file LuxProfilePad.h.

Enumeration Type Documentation

◆ eLuxProfilePad

Enumerator
eLuxProfilePad_None 
eLuxProfilePad_Select 
eLuxProfilePad_Create 
eLuxProfilePad_Delete 
eLuxProfilePad_Back 

Definition at line 16 of file LuxProfilePad.h.

Function Documentation

◆ LuxProfilePadAction()

int LuxProfilePadAction ( int alUIButton)
inline

Definition at line 25 of file LuxProfilePad.h.

◆ LuxListStep()

int LuxListStep ( int alCurrent,
int alCount,
int alDir )
inline

Next selected row for an up (-1) / down (+1) press, clamped to the list.

Definition at line 38 of file LuxProfilePad.h.

Variable Documentation

◆ kLuxUIPrimary

const int kLuxUIPrimary = 1 << 0
static

Definition at line 9 of file LuxProfilePad.h.

◆ kLuxUISecondary

const int kLuxUISecondary = 1 << 1
static

Definition at line 10 of file LuxProfilePad.h.

◆ kLuxUIPrevPage

const int kLuxUIPrevPage = 1 << 2
static

Definition at line 11 of file LuxProfilePad.h.

◆ kLuxUINextPage

const int kLuxUINextPage = 1 << 3
static

Definition at line 12 of file LuxProfilePad.h.

◆ kLuxUIDelete

const int kLuxUIDelete = 1 << 5
static

Definition at line 13 of file LuxProfilePad.h.

◆ kLuxUIClear

const int kLuxUIClear = 1 << 6
static

Definition at line 14 of file LuxProfilePad.h.