#include "joystick_controller.h"
#include "irrlichttypes_extrabloated.h"
#include "keys.h"
#include "settings.h"
#include "gettime.h"
#include "porting.h"
#include "util/string.h"
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 () |
#define JLO_A_PB | ( | A, | |
B, | |||
C, | |||
D | |||
) | jlo.axis_keys.emplace_back(A, B, C, D) |
#define JLO_B_PB | ( | A, | |
B, | |||
C | |||
) | jlo.button_keys.emplace_back(A, B, C) |
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().
JoystickLayout create_xbox_layout | ( | ) |
References JoystickLayout::axes, JoystickLayout::axes_deadzone, KeyType::BACKWARD, KeyType::DIG, KeyType::DROP, KeyType::ESC, KeyType::FORWARD, KeyType::FREEMOVE, KeyType::HOTBAR_NEXT, KeyType::HOTBAR_PREV, KeyType::INVENTORY, JA_COUNT, JLO_A_PB, JLO_B_PB, KeyType::JUMP, KeyType::LEFT, KeyType::PLACE, KeyType::RIGHT, KeyType::SCREENSHOT, KeyType::SNEAK, KeyType::SPECIAL1, and KeyType::ZOOM.
Referenced by JoystickController::setLayoutFromControllerName().