RetroArch
Macros | Variables
input_autodetect_builtin.c File Reference
#include <retro_environment.h>
#include "../tasks/tasks_internal.h"
#include "input_driver.h"
Include dependency graph for input_autodetect_builtin.c:
This graph shows which files directly or indirectly include this file:

Macros

#define DECL_BTN(btn, bind)   "input_" #btn "_btn = " #bind "\n"
 
#define DECL_BTN_EX(btn, bind, name)   "input_" #btn "_btn = " #bind "\ninput_" #btn "_btn_label = \"" name "\"\n"
 
#define DECL_AXIS(axis, bind)   "input_" #axis "_axis = " #bind "\n"
 
#define DECL_AXIS_EX(axis, bind, name)   "input_" #axis "_axis = " #bind "\ninput_" #axis "_axis_label = \"" name "\"\n"
 
#define DECL_MENU(btn)   "input_menu_toggle_btn = " #btn "\n"
 
#define DECL_AUTOCONF_DEVICE(device, driver, binds)   "input_device = \"" device "\"\ninput_driver = \"" driver "\"\n" binds
 
#define DECL_AUTOCONF_PID(pid, vid, driver, binds)   "input_product_id = " #pid "\ninput_vendor_id = " #vid "\ninput_driver = \"" driver "\"\n" binds
 
#define SDL2_DEFAULT_BINDS
 
#define PSPINPUT_DEFAULT_BINDS
 
#define PS2INPUT_DEFAULT_BINDS
 
#define CTRINPUT_DEFAULT_BINDS
 
#define DOSINPUT_DEFAULT_BINDS
 
#define GXINPUT_GAMECUBE_DEFAULT_BINDS
 
#define GXINPUT_WIIMOTE_DEFAULT_BINDS
 
#define GXINPUT_NUNCHUK_DEFAULT_BINDS
 
#define GXINPUT_CLASSIC_DEFAULT_BINDS
 
#define PS3INPUT_DEFAULT_BINDS
 
#define XINPUT_DEFAULT_BINDS
 
#define SWITCH_DEFAULT_BINDS
 
#define EMSCRIPTEN_DEFAULT_BINDS
 

Variables

const char *const input_builtin_autoconfs []
 

Macro Definition Documentation

◆ CTRINPUT_DEFAULT_BINDS

#define CTRINPUT_DEFAULT_BINDS
Value:
DECL_BTN_EX(a, 8, "A") \
DECL_BTN_EX(b, 0, "B") \
DECL_BTN_EX(x, 9, "X") \
DECL_BTN_EX(y, 1, "Y") \
DECL_BTN_EX(start, 3, "Start") \
DECL_BTN_EX(select, 2, "Select") \
DECL_BTN_EX(up, 4, "D-Pad Up") \
DECL_BTN_EX(down, 5, "D-Pad Down") \
DECL_BTN_EX(left, 6, "D-Pad Left") \
DECL_BTN_EX(right, 7, "D-Pad Right") \
DECL_BTN_EX(l, 10, "L") \
DECL_BTN_EX(r, 11, "R") \
DECL_BTN_EX(l2, 12, "ZL") \
DECL_BTN_EX(r2, 13, "ZR") \
DECL_AXIS_EX(l_x_plus, +0, "Circle Pad Right") \
DECL_AXIS_EX(l_x_minus, -0, "Circle Pad Left") \
DECL_AXIS_EX(l_y_plus, +1, "Circle Pad Down") \
DECL_AXIS_EX(l_y_minus, -1, "Circle Pad Up") \
DECL_AXIS_EX(r_x_plus, +2, "C Stick Right") \
DECL_AXIS_EX(r_x_minus, -2, "C Stick Left") \
DECL_AXIS_EX(r_y_plus, -3, "C Stick Down") \
DECL_AXIS_EX(r_y_minus, +3, "C Stick Up")
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
#define DECL_BTN_EX(btn, bind, name)
Definition: input_autodetect_builtin.c:36
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ DECL_AUTOCONF_DEVICE

#define DECL_AUTOCONF_DEVICE (   device,
  driver,
  binds 
)    "input_device = \"" device "\"\ninput_driver = \"" driver "\"\n" binds

◆ DECL_AUTOCONF_PID

#define DECL_AUTOCONF_PID (   pid,
  vid,
  driver,
  binds 
)    "input_product_id = " #pid "\ninput_vendor_id = " #vid "\ninput_driver = \"" driver "\"\n" binds

◆ DECL_AXIS

#define DECL_AXIS (   axis,
  bind 
)    "input_" #axis "_axis = " #bind "\n"

◆ DECL_AXIS_EX

#define DECL_AXIS_EX (   axis,
  bind,
  name 
)    "input_" #axis "_axis = " #bind "\ninput_" #axis "_axis_label = \"" name "\"\n"

◆ DECL_BTN

#define DECL_BTN (   btn,
  bind 
)    "input_" #btn "_btn = " #bind "\n"

◆ DECL_BTN_EX

#define DECL_BTN_EX (   btn,
  bind,
  name 
)    "input_" #btn "_btn = " #bind "\ninput_" #btn "_btn_label = \"" name "\"\n"

◆ DECL_MENU

#define DECL_MENU (   btn)    "input_menu_toggle_btn = " #btn "\n"

◆ DOSINPUT_DEFAULT_BINDS

#define DOSINPUT_DEFAULT_BINDS
Value:
DECL_BTN(a, 8) \
DECL_BTN(b, 0) \
DECL_BTN(x, 9) \
DECL_BTN(y, 1) \
DECL_BTN(start, 3) \
DECL_BTN(select, 2) \
DECL_BTN(up, 4) \
DECL_BTN(down, 5) \
DECL_BTN(left, 6) \
DECL_BTN(right, 7) \
DECL_BTN(l, 10) \
DECL_BTN(r, 11) \
DECL_BTN(l2, 12) \
DECL_BTN(r2, 13) \
DECL_AXIS(l_x_plus, +0) \
DECL_AXIS(l_x_minus, -0) \
DECL_AXIS(l_y_plus, +1) \
DECL_AXIS(l_y_minus, -1) \
DECL_AXIS(r_x_plus, +2) \
DECL_AXIS(r_x_minus, -2) \
DECL_AXIS(r_y_plus, -3) \
DECL_AXIS(r_y_minus, +3)
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
#define DECL_BTN(btn, bind)
Definition: input_autodetect_builtin.c:35
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ EMSCRIPTEN_DEFAULT_BINDS

#define EMSCRIPTEN_DEFAULT_BINDS
Value:
DECL_BTN(a, 1) \
DECL_BTN(b, 0) \
DECL_BTN(x, 3) \
DECL_BTN(y, 2) \
DECL_BTN(start, 9) \
DECL_BTN(select, 8) \
DECL_BTN(up, 12) \
DECL_BTN(down, 13) \
DECL_BTN(left, 14) \
DECL_BTN(right, 15) \
DECL_BTN(l, 4) \
DECL_BTN(r, 5) \
DECL_BTN(l2, 6) \
DECL_BTN(r2, 7) \
DECL_BTN(l3, 10) \
DECL_BTN(r3, 11) \
DECL_AXIS(l_x_plus, +0) \
DECL_AXIS(l_x_minus, -0) \
DECL_AXIS(l_y_plus, +1) \
DECL_AXIS(l_y_minus, -1) \
DECL_AXIS(r_x_plus, +2) \
DECL_AXIS(r_x_minus, -2) \
DECL_AXIS(r_y_plus, +3) \
DECL_AXIS(r_y_minus, -3)
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
#define DECL_BTN(btn, bind)
Definition: input_autodetect_builtin.c:35
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r3
Definition: connect_ps4.c:80
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
bf_uint8_t l3
Definition: connect_ps4.c:79
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ GXINPUT_CLASSIC_DEFAULT_BINDS

#define GXINPUT_CLASSIC_DEFAULT_BINDS
Value:
DECL_BTN_EX(a, 13, "A") \
DECL_BTN_EX(b, 14, "B") \
DECL_BTN_EX(x, 15, "X") \
DECL_BTN_EX(y, 16, "Y") \
DECL_BTN_EX(start, 17, "+") \
DECL_BTN_EX(select, 18, "-") \
DECL_BTN_EX(menu_toggle, 19, "Home") \
DECL_BTN_EX(up, 24, "D-Pad Up") \
DECL_BTN_EX(down, 25, "D-Pad Down") \
DECL_BTN_EX(left, 26, "D-Pad left") \
DECL_BTN_EX(right, 27, "D-Pad right") \
DECL_BTN_EX(l, 20, "L") \
DECL_BTN_EX(r, 21, "R") \
DECL_BTN_EX(l2, 22, "ZL") \
DECL_BTN_EX(r2, 23, "ZR") \
DECL_AXIS_EX(l_x_plus, +0, "L-Stick Right") \
DECL_AXIS_EX(l_x_minus, -0, "L-Stick Left") \
DECL_AXIS_EX(l_y_plus, +1, "L-Stick Down") \
DECL_AXIS_EX(l_y_minus, -1, "L-Stick Up") \
DECL_AXIS_EX(r_x_plus, +2, "R-Stick Right") \
DECL_AXIS_EX(r_x_minus, -2, "R-Stick Left") \
DECL_AXIS_EX(r_y_plus, +3, "R-Stick Down") \
DECL_AXIS_EX(r_y_minus, -3, "R-Stick Up")
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
#define DECL_BTN_EX(btn, bind, name)
Definition: input_autodetect_builtin.c:36
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ GXINPUT_GAMECUBE_DEFAULT_BINDS

#define GXINPUT_GAMECUBE_DEFAULT_BINDS
Value:
DECL_BTN(a, 0) \
DECL_BTN(b, 1) \
DECL_BTN(x, 2) \
DECL_BTN(y, 3) \
DECL_BTN(start, 4) \
DECL_BTN(select, 6) \
DECL_BTN(up, 9) \
DECL_BTN(down, 10) \
DECL_BTN(left, 11) \
DECL_BTN(right, 12) \
DECL_BTN(l, 7) \
DECL_BTN(r, 8) \
DECL_AXIS(l_x_plus, +0) \
DECL_AXIS(l_x_minus, -0) \
DECL_AXIS(l_y_plus, +1) \
DECL_AXIS(l_y_minus, -1) \
DECL_AXIS(r_x_plus, +2) \
DECL_AXIS(r_x_minus, -2) \
DECL_AXIS(r_y_plus, -3) \
DECL_AXIS(r_y_minus, +3)
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
#define DECL_BTN(btn, bind)
Definition: input_autodetect_builtin.c:35
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ GXINPUT_NUNCHUK_DEFAULT_BINDS

#define GXINPUT_NUNCHUK_DEFAULT_BINDS
Value:
DECL_BTN_EX(a, 28, "A") \
DECL_BTN_EX(b, 29, "B") \
DECL_BTN_EX(x, 30, "1") \
DECL_BTN_EX(y, 31, "2") \
DECL_BTN_EX(start, 32, "+") \
DECL_BTN_EX(select, 33, "-") \
DECL_BTN_EX(menu_toggle, 34, "Home") \
DECL_BTN_EX(up, 35, "D-Pad Up" ) \
DECL_BTN_EX(down, 36, "D-Pad Down") \
DECL_BTN_EX(left, 37, "D-Pad Left") \
DECL_BTN_EX(right, 38, "D-Pad right") \
DECL_BTN_EX(l, 39, "Z") \
DECL_BTN_EX(r, 40, "C") \
DECL_AXIS_EX(l_x_plus, +0, "Stick Right") \
DECL_AXIS_EX(l_x_minus, -0, "Stick Left") \
DECL_AXIS_EX(l_y_plus, +1, "Stick Down") \
DECL_AXIS_EX(l_y_minus, -1, "Stick Up")
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
#define DECL_BTN_EX(btn, bind, name)
Definition: input_autodetect_builtin.c:36
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ GXINPUT_WIIMOTE_DEFAULT_BINDS

#define GXINPUT_WIIMOTE_DEFAULT_BINDS
Value:
DECL_BTN_EX(a, 31, "2") \
DECL_BTN_EX(b, 30, "1") \
DECL_BTN_EX(x, 29, "B") \
DECL_BTN_EX(y, 28, "A") \
DECL_BTN_EX(start, 32, "+") \
DECL_BTN_EX(select, 33, "-") \
DECL_BTN_EX(menu_toggle, 34, "Home") \
DECL_BTN_EX(up, 35, "D-Pad Up") \
DECL_BTN_EX(down, 36, "D-Pad Down") \
DECL_BTN_EX(left, 37, "D-Pad Left") \
DECL_BTN_EX(right, 38, "D-Pad right")
GLuint start
Definition: glext.h:6292
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
#define DECL_BTN_EX(btn, bind, name)
Definition: input_autodetect_builtin.c:36
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ PS2INPUT_DEFAULT_BINDS

#define PS2INPUT_DEFAULT_BINDS
Value:
DECL_BTN_EX(a, 8, "Circle") \
DECL_BTN_EX(b, 0, "Cross") \
DECL_BTN_EX(x, 9, "Triangle") \
DECL_BTN_EX(y, 1, "Square") \
DECL_BTN_EX(start, 3, "Start") \
DECL_BTN_EX(select, 2, "Select") \
DECL_BTN_EX(up, 4, "D-Pad up") \
DECL_BTN_EX(down, 5, "D-Pad down") \
DECL_BTN_EX(left, 6, "D-Pad left") \
DECL_BTN_EX(right, 7, "D-Pad right") \
DECL_BTN_EX(l, 10, "L1") \
DECL_BTN_EX(r, 11, "R1") \
DECL_BTN_EX(l2, 12, "L2") \
DECL_BTN_EX(r2, 13, "R2") \
DECL_BTN_EX(l3, 14, "L3") \
DECL_BTN_EX(r3, 15, "R3") \
DECL_AXIS_EX(l_x_plus, +0, "L-Stick right") \
DECL_AXIS_EX(l_x_minus, -0, "L-Stick left") \
DECL_AXIS_EX(l_y_plus, +1, "L-Stick down") \
DECL_AXIS_EX(l_y_minus, -1, "L-Stick up") \
DECL_AXIS_EX(r_x_plus, +2, "R-Stick right") \
DECL_AXIS_EX(r_x_minus, -2, "R-Stick left") \
DECL_AXIS_EX(r_y_plus, +3, "R-Stick down") \
DECL_AXIS_EX(r_y_minus, -3, "R-Stick up")
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r3
Definition: connect_ps4.c:80
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
bf_uint8_t l3
Definition: connect_ps4.c:79
#define DECL_BTN_EX(btn, bind, name)
Definition: input_autodetect_builtin.c:36
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ PS3INPUT_DEFAULT_BINDS

#define PS3INPUT_DEFAULT_BINDS
Value:
DECL_BTN(a, 8) \
DECL_BTN(b, 0) \
DECL_BTN(x, 9) \
DECL_BTN(y, 1) \
DECL_BTN(start, 3) \
DECL_BTN(select, 2) \
DECL_BTN(up, 4) \
DECL_BTN(down, 5) \
DECL_BTN(left, 6) \
DECL_BTN(right, 7) \
DECL_BTN(l, 10) \
DECL_BTN(r, 11) \
DECL_BTN(l3, 14) \
DECL_BTN(r3, 15) \
DECL_BTN(l2, 12) \
DECL_BTN(r2, 13) \
DECL_AXIS(l_x_plus, +0) \
DECL_AXIS(l_x_minus, -0) \
DECL_AXIS(l_y_plus, +1) \
DECL_AXIS(l_y_minus, -1) \
DECL_AXIS(r_x_plus, +2) \
DECL_AXIS(r_x_minus, -2) \
DECL_AXIS(r_y_plus, -3) \
DECL_AXIS(r_y_minus, +3)
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
#define DECL_BTN(btn, bind)
Definition: input_autodetect_builtin.c:35
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r3
Definition: connect_ps4.c:80
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
bf_uint8_t l3
Definition: connect_ps4.c:79
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ PSPINPUT_DEFAULT_BINDS

#define PSPINPUT_DEFAULT_BINDS
Value:
DECL_BTN_EX(a, 8, "Circle") \
DECL_BTN_EX(b, 0, "Cross") \
DECL_BTN_EX(x, 9, "Triangle") \
DECL_BTN_EX(y, 1, "Square") \
DECL_BTN_EX(start, 3, "Start") \
DECL_BTN_EX(select, 2, "Select") \
DECL_BTN_EX(up, 4, "D-Pad up") \
DECL_BTN_EX(down, 5, "D-Pad down") \
DECL_BTN_EX(left, 6, "D-Pad left") \
DECL_BTN_EX(right, 7, "D-Pad right") \
DECL_BTN_EX(l, 10, "L1") \
DECL_BTN_EX(r, 11, "R1") \
DECL_BTN_EX(l2, 12, "L2") \
DECL_BTN_EX(r2, 13, "R2") \
DECL_BTN_EX(l3, 14, "L3") \
DECL_BTN_EX(r3, 15, "R3") \
DECL_AXIS_EX(l_x_plus, +0, "L-Stick right") \
DECL_AXIS_EX(l_x_minus, -0, "L-Stick left") \
DECL_AXIS_EX(l_y_plus, +1, "L-Stick down") \
DECL_AXIS_EX(l_y_minus, -1, "L-Stick up") \
DECL_AXIS_EX(r_x_plus, +2, "R-Stick right") \
DECL_AXIS_EX(r_x_minus, -2, "R-Stick left") \
DECL_AXIS_EX(r_y_plus, +3, "R-Stick down") \
DECL_AXIS_EX(r_y_minus, -3, "R-Stick up")
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r3
Definition: connect_ps4.c:80
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
bf_uint8_t l3
Definition: connect_ps4.c:79
#define DECL_BTN_EX(btn, bind, name)
Definition: input_autodetect_builtin.c:36
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ SDL2_DEFAULT_BINDS

#define SDL2_DEFAULT_BINDS
Value:
DECL_BTN(a, 1) \
DECL_BTN(b, 0) \
DECL_BTN(x, 3) \
DECL_BTN(y, 2) \
DECL_BTN(start, 6) \
DECL_BTN(select, 4) \
DECL_BTN(up, 11) \
DECL_BTN(down, 12) \
DECL_BTN(left, 13) \
DECL_BTN(right, 14) \
DECL_BTN(l, 9) \
DECL_BTN(r, 10) \
DECL_BTN(l3, 7) \
DECL_BTN(r3, 8) \
DECL_AXIS(l_x_plus, +0) \
DECL_AXIS(l_x_minus, -0) \
DECL_AXIS(l_y_plus, +1) \
DECL_AXIS(l_y_minus, -1) \
DECL_AXIS(r_x_plus, +2) \
DECL_AXIS(r_x_minus, -2) \
DECL_AXIS(r_y_plus, -3) \
DECL_AXIS(r_y_minus, +3)
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
#define DECL_BTN(btn, bind)
Definition: input_autodetect_builtin.c:35
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r3
Definition: connect_ps4.c:80
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
bf_uint8_t l3
Definition: connect_ps4.c:79
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ SWITCH_DEFAULT_BINDS

#define SWITCH_DEFAULT_BINDS
Value:
DECL_BTN_EX(a, 0, "A") \
DECL_BTN_EX(b, 1, "B") \
DECL_BTN_EX(x, 2, "X") \
DECL_BTN_EX(y, 3, "Y") \
DECL_BTN_EX(start, 10, "Plus") \
DECL_BTN_EX(select, 11, "Minus") \
DECL_BTN_EX(up, 13, "D-Pad up") \
DECL_BTN_EX(down, 15, "D-Pad down") \
DECL_BTN_EX(left, 12, "D-Pad left") \
DECL_BTN_EX(right, 14, "D-Pad right") \
DECL_BTN_EX(l, 6, "L") \
DECL_BTN_EX(r, 7, "R") \
DECL_BTN_EX(l2, 8, "ZL") \
DECL_BTN_EX(r2, 9, "ZR") \
DECL_BTN_EX(l3, 4, "L3") \
DECL_BTN_EX(r3, 5, "R3") \
DECL_AXIS_EX(l_x_plus, +0, "L-Stick right") \
DECL_AXIS_EX(l_x_minus, -0, "L-Stick left") \
DECL_AXIS_EX(l_y_plus, +1, "L-Stick down") \
DECL_AXIS_EX(l_y_minus, -1, "L-Stick up") \
DECL_AXIS_EX(r_x_plus, +2, "R-Stick right") \
DECL_AXIS_EX(r_x_minus, -2, "R-Stick left") \
DECL_AXIS_EX(r_y_plus, +3, "R-Stick down") \
DECL_AXIS_EX(r_y_minus, -3, "R-Stick up")
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r3
Definition: connect_ps4.c:80
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
bf_uint8_t l3
Definition: connect_ps4.c:79
#define DECL_BTN_EX(btn, bind, name)
Definition: input_autodetect_builtin.c:36
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ XINPUT_DEFAULT_BINDS

#define XINPUT_DEFAULT_BINDS
Value:
DECL_BTN(a, 1) \
DECL_BTN(b, 0) \
DECL_BTN(x, 3) \
DECL_BTN(y, 2) \
DECL_BTN(start, 6) \
DECL_BTN(select, 7) \
DECL_BTN(up, h0up) \
DECL_BTN(down, h0down) \
DECL_BTN(left, h0left) \
DECL_BTN(right, h0right) \
DECL_BTN(l, 4) \
DECL_BTN(r, 5) \
DECL_BTN(l3, 8) \
DECL_BTN(r3, 9) \
DECL_MENU(10) \
DECL_AXIS(l2, +4) \
DECL_AXIS(r2, +5) \
DECL_AXIS(l_x_plus, +0) \
DECL_AXIS(l_x_minus, -0) \
DECL_AXIS(l_y_plus, -1) \
DECL_AXIS(l_y_minus, +1) \
DECL_AXIS(r_x_plus, +2) \
DECL_AXIS(r_x_minus, -2) \
DECL_AXIS(r_y_plus, -3) \
DECL_AXIS(r_y_minus, +3)
GLuint start
Definition: glext.h:6292
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
#define DECL_BTN(btn, bind)
Definition: input_autodetect_builtin.c:35
bf_uint8_t l2
Definition: connect_ps4.c:75
GLdouble GLdouble right
Definition: glext.h:11766
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bf_uint8_t r3
Definition: connect_ps4.c:80
bf_uint8_t r2
Definition: connect_ps4.c:76
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
bf_uint8_t l3
Definition: connect_ps4.c:79
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
bool up
Definition: connect_wiiupro.c:50
GLint left
Definition: glext.h:8393
bool down
Definition: connect_wiiupro.c:51
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

Variable Documentation

◆ input_builtin_autoconfs

const char* const input_builtin_autoconfs[]