OpenClonk
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

◆ Any()

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

Definition at line 256 of file C4KeyboardInput.h.

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

References KEY_CONTROLLER_AnyButton, and KEY_Gamepad().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cancel()

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

Definition at line 257 of file C4KeyboardInput.h.

257 { keys.push_back(C4KeyCodeEx(KEY_Gamepad(KEY_CONTROLLER_ButtonB))); }
const C4KeyCode KEY_CONTROLLER_ButtonB

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Down()

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

Definition at line 265 of file C4KeyboardInput.h.

const C4KeyCode KEY_CONTROLLER_AxisLeftYDown
const C4KeyCode KEY_CONTROLLER_ButtonDpadDown

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Left()

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

Definition at line 259 of file C4KeyboardInput.h.

const C4KeyCode KEY_CONTROLLER_AxisLeftXLeft
const C4KeyCode KEY_CONTROLLER_ButtonDpadLeft

References KEY_CONTROLLER_AxisLeftXLeft, KEY_CONTROLLER_ButtonDpadLeft, and KEY_Gamepad().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Ok()

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

Definition at line 258 of file C4KeyboardInput.h.

258 { keys.push_back(C4KeyCodeEx(KEY_Gamepad(KEY_CONTROLLER_ButtonA))); }
const C4KeyCode KEY_CONTROLLER_ButtonA

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Right()

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

Definition at line 261 of file C4KeyboardInput.h.

const C4KeyCode KEY_CONTROLLER_ButtonDpadRight
const C4KeyCode KEY_CONTROLLER_AxisLeftXRight

References KEY_CONTROLLER_AxisLeftXRight, KEY_CONTROLLER_ButtonDpadRight, and KEY_Gamepad().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Up()

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

Definition at line 263 of file C4KeyboardInput.h.

const C4KeyCode KEY_CONTROLLER_ButtonDpadUp
const C4KeyCode KEY_CONTROLLER_AxisLeftYUp

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().

Here is the call graph for this function:
Here is the caller graph for this function: