Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
joystick_controller.cpp File Reference
#include "joystick_controller.h"
#include "irrlichttypes_extrabloated.h"
#include "keys.h"
#include "settings.h"
#include "gettime.h"
#include "porting.h"
#include "util/string.h"
#include "util/numeric.h"
+ Include dependency graph for joystick_controller.cpp:

Macros

#define JLO_B_PB(A, B, C)   jlo.button_keys.emplace_back(A, B, C)
 
#define JLO_A_PB(A, B, C, D)   jlo.axis_keys.emplace_back(A, B, C, D)
 

Functions

JoystickLayout create_default_layout ()
 
JoystickLayout create_xbox_layout ()
 
JoystickLayout create_dragonrise_gamecube_layout ()
 

Macro Definition Documentation

◆ JLO_A_PB

#define JLO_A_PB ( A,
B,
C,
D )   jlo.axis_keys.emplace_back(A, B, C, D)

◆ JLO_B_PB

#define JLO_B_PB ( A,
B,
C )   jlo.button_keys.emplace_back(A, B, C)

Function Documentation

◆ create_default_layout()

JoystickLayout create_default_layout ( )

References KeyType::AUX1, JoystickLayout::axes, JoystickLayout::axes_deadzone, KeyType::BACKWARD, KeyType::DIG, KeyType::DROP, KeyType::ESC, KeyType::FORWARD, g_settings, Settings::getU16(), KeyType::HOTBAR_NEXT, KeyType::HOTBAR_PREV, JA_COUNT, JLO_A_PB, JLO_B_PB, KeyType::JUMP, KeyType::LEFT, KeyType::PLACE, KeyType::RIGHT, and KeyType::SNEAK.

Referenced by JoystickController::setLayoutFromControllerName().

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

◆ create_dragonrise_gamecube_layout()

JoystickLayout create_dragonrise_gamecube_layout ( )

◆ create_xbox_layout()