|
stmm-games-doc
0.32.0
|
The key action class. More...
Public Member Functions | |
| KeyAction (const std::vector< std::string > &aKeyActionName, const std::string &sDescription, const std::vector< std::pair< stmi::Capability::Class, std::vector< stmi::HARDWARE_KEY > > > &aDefaultClassKeys) noexcept | |
| Construct a key action. More... | |
| KeyAction (const std::string &sKeyActionName, const std::string &sDescription, const stmi::Capability::Class &oCapaClass, const std::vector< stmi::HARDWARE_KEY > &aDefaultClassKeys) noexcept | |
| Construct a key action. More... | |
| const std::vector< std::string > & | getNames () const noexcept |
| Names associated with the key action. More... | |
| const std::string & | getDescription () const noexcept |
| Description of the key action. More... | |
| const std::vector< stmi::Capability::Class > & | getClasses () const noexcept |
| Capability classes that have default keys for this key action. More... | |
| const std::vector< stmi::HARDWARE_KEY > & | getClassDefaultKeys (const stmi::Capability::Class &oClass) const noexcept |
| Default keys of a capability class for this key action. More... | |
The key action class.
Can be used by the preferences dialog.
|
noexcept |
Construct a key action.
Having more than one name for the same action allows to mix different games into one.
Names must start with alphanumeric character.
Ex. The hardware key stmi::HK_UP can be assigned to a tetris block with key action name "Rotate" and to a cursor that responds to a key action named "MoveUp".
| aKeyActionName | The non empty names that identify the same key action. |
| sDescription | The description as it should appear in the preferences dialog. |
| aDefaultClassKeys | The capability classes and their default keys. |
|
noexcept |
Construct a key action.
The name must start with alphanumeric character.
| sKeyActionName | The name of the key action. Must be unique. |
| sDescription | The description of the key action. |
| oCapaClass | The device's capability class for which the default keys are defined. |
| aDefaultClassKeys | The keys that can be used as defaults by a preferences dialog. |
|
noexcept |
Default keys of a capability class for this key action.
|
inlinenoexcept |
Capability classes that have default keys for this key action.
|
inlinenoexcept |
Description of the key action.
|
inlinenoexcept |
Names associated with the key action.
1.8.13