ManaPlus
Public Member Functions | Data Fields
InputActionSortFunctor Class Reference

#include <inputactionsortfunctor.h>

Public Member Functions

bool operator() (const InputActionT key1, const InputActionT key2) const
 

Data Fields

const InputActionDatakeys
 

Detailed Description

Definition at line 31 of file inputactionsortfunctor.h.

Member Function Documentation

◆ operator()()

bool InputActionSortFunctor::operator() ( const InputActionT  key1,
const InputActionT  key2 
) const
inline

Definition at line 36 of file inputactionsortfunctor.h.

38  {
39  const size_t k1 = CAST_SIZE(key1);
40  const size_t k2 = CAST_SIZE(key2);
41  return keys[k1].priority > keys[k2].priority;
42  }
#define CAST_SIZE
Definition: cast.h:34
const InputActionData * keys
const int priority

References CAST_SIZE, keys, and InputActionData::priority.

Field Documentation

◆ keys

const InputActionData* InputActionSortFunctor::keys

Definition at line 44 of file inputactionsortfunctor.h.

Referenced by operator()(), and InputManager::updateKeyActionMap().


The documentation for this class was generated from the following file: