OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
ControllerKeys Namespace Reference

Functions

template<class T >
void Any (T &keys)
 
template<class T >
void Cancel (T &keys)
 
template<class T >
void Ok (T &keys)
 
template<class T >
void Left (T &keys)
 
template<class T >
void Right (T &keys)
 
template<class T >
void Up (T &keys)
 
template<class T >
void Down (T &keys)
 

Function Documentation

template<class T >
void ControllerKeys::Any ( T &  keys)

Definition at line 254 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AnyButton, and KEY_Gamepad().

Referenced by C4Game::InitKeyboard(), and C4NetIO::HostAddress::SetHost().

254 { keys.push_back(C4KeyCodeEx(KEY_Gamepad(KEY_CONTROLLER_AnyButton))); }
C4KeyCode KEY_Gamepad(uint8_t idButton)
const C4KeyCode KEY_CONTROLLER_AnyButton

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void ControllerKeys::Cancel ( T &  keys)

Definition at line 255 of file C4KeyboardInput.h.

References KEY_CONTROLLER_ButtonB, and KEY_Gamepad().

Referenced by C4StartupPlrSelDlg::C4StartupPlrSelDlg(), C4GUI::ComboBox::ComboBox(), C4GUI::ContextMenu::ContextMenu(), C4GUI::Dialog::Dialog(), C4Game::InitKeyboard(), and C4GUI::RenameEdit::RenameEdit().

255 { keys.push_back(C4KeyCodeEx(KEY_Gamepad(KEY_CONTROLLER_ButtonB))); }
const C4KeyCode KEY_CONTROLLER_ButtonB
C4KeyCode KEY_Gamepad(uint8_t idButton)

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void ControllerKeys::Down ( T &  keys)

Definition at line 263 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisLeftYDown, KEY_CONTROLLER_ButtonDpadDown, and KEY_Gamepad().

Referenced by C4StartupMainDlg::C4StartupMainDlg(), C4GUI::ComboBox::ComboBox(), C4GUI::ContextMenu::ContextMenu(), C4Game::InitKeyboard(), C4GUI::ListBox::ListBox(), and C4GUI::Tabular::Tabular().

const C4KeyCode KEY_CONTROLLER_ButtonDpadDown
C4KeyCode KEY_Gamepad(uint8_t idButton)
const C4KeyCode KEY_CONTROLLER_AxisLeftYDown

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void ControllerKeys::Left ( T &  keys)

Definition at line 257 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisLeftXLeft, KEY_CONTROLLER_ButtonDpadLeft, and KEY_Gamepad().

Referenced by C4GUI::ContextMenu::ContextMenu(), C4GUI::Dialog::Dialog(), C4Game::InitKeyboard(), and C4GUI::ListBox::ListBox().

C4KeyCode KEY_Gamepad(uint8_t idButton)
const C4KeyCode KEY_CONTROLLER_AxisLeftXLeft
const C4KeyCode KEY_CONTROLLER_ButtonDpadLeft

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void ControllerKeys::Ok ( T &  keys)

Definition at line 256 of file C4KeyboardInput.h.

References KEY_CONTROLLER_ButtonA, and KEY_Gamepad().

Referenced by C4GUI::Button::Button(), C4GUI::CheckBox::CheckBox(), C4GUI::ComboBox::ComboBox(), C4GUI::ContextMenu::ContextMenu(), C4GUI::Dialog::Dialog(), C4Game::InitKeyboard(), and C4GUI::ListBox::ListBox().

256 { keys.push_back(C4KeyCodeEx(KEY_Gamepad(KEY_CONTROLLER_ButtonA))); }
const C4KeyCode KEY_CONTROLLER_ButtonA
C4KeyCode KEY_Gamepad(uint8_t idButton)

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void ControllerKeys::Right ( T &  keys)

Definition at line 259 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisLeftXRight, KEY_CONTROLLER_ButtonDpadRight, and KEY_Gamepad().

Referenced by C4GUI::ContextMenu::ContextMenu(), C4GUI::Dialog::Dialog(), C4Game::InitKeyboard(), and C4GUI::ListBox::ListBox().

const C4KeyCode KEY_CONTROLLER_AxisLeftXRight
C4KeyCode KEY_Gamepad(uint8_t idButton)
const C4KeyCode KEY_CONTROLLER_ButtonDpadRight

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void ControllerKeys::Up ( T &  keys)

Definition at line 261 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisLeftYUp, KEY_CONTROLLER_ButtonDpadUp, and KEY_Gamepad().

Referenced by C4StartupMainDlg::C4StartupMainDlg(), C4GUI::ContextMenu::ContextMenu(), C4Game::InitKeyboard(), C4GUI::ListBox::ListBox(), CStdGL::PerformMesh(), and C4GUI::Tabular::Tabular().

C4KeyCode KEY_Gamepad(uint8_t idButton)
const C4KeyCode KEY_CONTROLLER_AxisLeftYUp
const C4KeyCode KEY_CONTROLLER_ButtonDpadUp

Here is the call graph for this function:

Here is the caller graph for this function: