#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"
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 () |
#define JLO_A_PB | ( | A, | |
B, | |||
C, | |||
D ) jlo.axis_keys.emplace_back(A, B, C, D) |
Referenced by create_default_layout(), create_dragonrise_gamecube_layout(), and create_xbox_layout().
#define JLO_B_PB | ( | A, | |
B, | |||
C ) jlo.button_keys.emplace_back(A, B, C) |
Referenced by create_default_layout(), create_dragonrise_gamecube_layout(), and create_xbox_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().
JoystickLayout create_dragonrise_gamecube_layout | ( | ) |
References KeyType::AUX1, JoystickLayout::axes, JoystickLayout::axes_deadzone, KeyType::BACKWARD, KeyType::DIG, KeyType::DROP, KeyType::ESC, KeyType::FORWARD, KeyType::HOTBAR_NEXT, KeyType::HOTBAR_PREV, KeyType::INVENTORY, JA_COUNT, JLO_A_PB, JLO_B_PB, KeyType::JUMP, KeyType::LEFT, KeyType::PLACE, KeyType::RIGHT, and KeyType::SNEAK.
Referenced by JoystickController::setLayoutFromControllerName().
JoystickLayout create_xbox_layout | ( | ) |
References KeyType::AUX1, 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, and KeyType::ZOOM.
Referenced by JoystickController::setLayoutFromControllerName().