Skip to content

InputBindings

#include "Core/Input/InputBindings.h"

Public Classes

Name
structActionMapping
structAxisMapping

Public Types

Name
using std::unordered_map< std::string, std::vector< ActionMapping > >ActionsMap
using std::unordered_map< std::string, std::vector< AxisMapping > >AxesMap

Public Functions

Name
const std::vector< ActionMapping > &getActionMapping(const char * name)
std::vector< AxisMapping >getAxisMapping(const char * name)
voidinit()
boolisActionCreated(const char * name)
boolisAxisCreated(const char * name)
voidremoveActionKey(const char * name, Keys::Code code)
voidremoveAxisKey(const char * name, Keys::Code code)
voidsetAction(const char * name)
voidsetActionKey(const char * name, Keys::Code code, ModifiersList modifiers =ModifiersList())
voidsetAxis(const char * name)
voidsetAxisKey(const char * name, float scale, Keys::Code code, ModifiersList modifiers =ModifiersList())

Friends

Name
classInputManager

Public Types Documentation

using ActionsMap

cpp
using InputBindings::ActionsMap =  std::unordered_map<std::string, std::vector<ActionMapping> >;
using InputBindings::ActionsMap =  std::unordered_map<std::string, std::vector<ActionMapping> >;

using AxesMap

cpp
using InputBindings::AxesMap =  std::unordered_map<std::string, std::vector<AxisMapping> >;
using InputBindings::AxesMap =  std::unordered_map<std::string, std::vector<AxisMapping> >;

Public Functions Documentation

function getActionMapping

cpp
static const std::vector< ActionMapping > & getActionMapping(
    const char * name
)
static const std::vector< ActionMapping > & getActionMapping(
    const char * name
)

function getAxisMapping

cpp
static std::vector< AxisMapping > getAxisMapping(
    const char * name
)
static std::vector< AxisMapping > getAxisMapping(
    const char * name
)

function init

cpp
static void init()
static void init()

function isActionCreated

cpp
static bool isActionCreated(
    const char * name
)
static bool isActionCreated(
    const char * name
)

function isAxisCreated

cpp
static bool isAxisCreated(
    const char * name
)
static bool isAxisCreated(
    const char * name
)

function removeActionKey

cpp
static void removeActionKey(
    const char * name,
    Keys::Code code
)
static void removeActionKey(
    const char * name,
    Keys::Code code
)

function removeAxisKey

cpp
static void removeAxisKey(
    const char * name,
    Keys::Code code
)
static void removeAxisKey(
    const char * name,
    Keys::Code code
)

function setAction

cpp
static void setAction(
    const char * name
)
static void setAction(
    const char * name
)

function setActionKey

cpp
static void setActionKey(
    const char * name,
    Keys::Code code,
    ModifiersList modifiers =ModifiersList()
)
static void setActionKey(
    const char * name,
    Keys::Code code,
    ModifiersList modifiers =ModifiersList()
)

TodoMH Check for conflicts.

function setAxis

cpp
static void setAxis(
    const char * name
)
static void setAxis(
    const char * name
)

function setAxisKey

cpp
static void setAxisKey(
    const char * name,
    float scale,
    Keys::Code code,
    ModifiersList modifiers =ModifiersList()
)
static void setAxisKey(
    const char * name,
    float scale,
    Keys::Code code,
    ModifiersList modifiers =ModifiersList()
)

Friends

friend InputManager

cpp
friend class InputManager(
    InputManager 
);
friend class InputManager(
    InputManager 
);

Updated on 2024-11-06 at 20:16:53 +0000