Minetest  5.4.0
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 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 ()
 

Macro Definition Documentation

◆ JLO_A_PB

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

◆ JLO_B_PB

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

Function Documentation

◆ create_default_layout()

JoystickLayout create_default_layout ( )

References 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, KeyType::SNEAK, and KeyType::SPECIAL1.

Referenced by JoystickController::setLayoutFromControllerName().

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

◆ create_xbox_layout()