mirror of
https://github.com/libretro/RetroArch
synced 2025-02-10 03:39:56 +00:00
(360) Setup Griffin for Xinput2 driver
This commit is contained in:
parent
5b8c426b3c
commit
67d6308ffe
@ -119,12 +119,14 @@ INPUT
|
|||||||
============================================================ */
|
============================================================ */
|
||||||
#if defined(__CELLOS_LV2__)
|
#if defined(__CELLOS_LV2__)
|
||||||
#include "../../ps3/ps3_input.c"
|
#include "../../ps3/ps3_input.c"
|
||||||
#elif defined(_XBOX360)
|
|
||||||
#include "../../360/xdk360_input.c"
|
|
||||||
#elif defined(GEKKO)
|
#elif defined(GEKKO)
|
||||||
#include "../../wii/input.c"
|
#include "../../wii/input.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_XINPUT2
|
||||||
|
#include "../../input/xinput2_input.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../../input/null.c"
|
#include "../../input/null.c"
|
||||||
|
|
||||||
/*============================================================
|
/*============================================================
|
||||||
|
@ -45,8 +45,8 @@
|
|||||||
|
|
||||||
#define input_init_func() ps3_input_initialize()
|
#define input_init_func() ps3_input_initialize()
|
||||||
#define input_poll_func() ps3_input_poll(driver.input_data)
|
#define input_poll_func() ps3_input_poll(driver.input_data)
|
||||||
#define input_input_state_func(snes_keybinds, port, device, index, id) \
|
#define input_input_state_func(retro_keybinds, port, device, index, id) \
|
||||||
ps3_input_state(driver.input_data, snes_keybinds, port, device, index, id)
|
ps3_input_state(driver.input_data, retro_keybinds, port, device, index, id)
|
||||||
#define input_key_pressed_func(key) ps3_key_pressed(driver.input_data, key)
|
#define input_key_pressed_func(key) ps3_key_pressed(driver.input_data, key)
|
||||||
#define input_free_func() ps3_free_input(driver.input_data)
|
#define input_free_func() ps3_free_input(driver.input_data)
|
||||||
|
|
||||||
@ -71,12 +71,12 @@
|
|||||||
#define gfx_ctx_window_has_focus() (true)
|
#define gfx_ctx_window_has_focus() (true)
|
||||||
#define gfx_ctx_swap_buffers() (d3d9->d3d_render_device->Present(NULL, NULL, NULL, NULL))
|
#define gfx_ctx_swap_buffers() (d3d9->d3d_render_device->Present(NULL, NULL, NULL, NULL))
|
||||||
|
|
||||||
#define input_init_func() xdk360_input_initialize()
|
#define input_init_func() xinput2_input_init()
|
||||||
#define input_poll_func() xdk360_input_poll(driver.input_data)
|
#define input_poll_func() xinput2_input_poll(driver.input_data)
|
||||||
#define input_input_state_func(snes_keybinds, port, device, index, id) \
|
#define input_input_state_func(retro_keybinds, port, device, index, id) \
|
||||||
xdk360_input_state(driver.input_data, snes_keybinds, port, device, index, id)
|
xinput2_input_state(driver.input_data, retro_keybinds, port, device, index, id)
|
||||||
#define input_key_pressed_func(key) xdk360_key_pressed(driver.input_data, key)
|
#define input_key_pressed_func(key) xinput2_input_key_pressed(driver.input_data, key)
|
||||||
#define input_free_func() xdk360_free_input(driver.input_data)
|
#define input_free_func() xinput2_input_free_input(driver.input_data)
|
||||||
|
|
||||||
/*============================================================
|
/*============================================================
|
||||||
GAMECUBE / WII
|
GAMECUBE / WII
|
||||||
@ -97,8 +97,8 @@
|
|||||||
|
|
||||||
#define input_init_func() wii_input_initialize()
|
#define input_init_func() wii_input_initialize()
|
||||||
#define input_poll_func() wii_input_poll(driver.input_data)
|
#define input_poll_func() wii_input_poll(driver.input_data)
|
||||||
#define input_input_state_func(snes_keybinds, port, device, index, id) \
|
#define input_input_state_func(retro_keybinds, port, device, index, id) \
|
||||||
wii_input_state(driver.input_data, snes_keybinds, port, device, index, id)
|
wii_input_state(driver.input_data, retro_keybinds, port, device, index, id)
|
||||||
#define input_key_pressed_func(key) wii_key_pressed(driver.input_data, key)
|
#define input_key_pressed_func(key) wii_key_pressed(driver.input_data, key)
|
||||||
#define input_free_func() wii_free_input(driver.input_data)
|
#define input_free_func() wii_free_input(driver.input_data)
|
||||||
#define gfx_ctx_window_has_focus() (true)
|
#define gfx_ctx_window_has_focus() (true)
|
||||||
@ -122,8 +122,8 @@
|
|||||||
|
|
||||||
#define input_init_func() null_input_init()
|
#define input_init_func() null_input_init()
|
||||||
#define input_poll_func() null_input_poll(driver.input_data)
|
#define input_poll_func() null_input_poll(driver.input_data)
|
||||||
#define input_input_state_func(snes_keybinds, port, device, index, id) \
|
#define input_input_state_func(retro_keybinds, port, device, index, id) \
|
||||||
null_input_state(driver.input_data, snes_keybinds, port, device, index, id)
|
null_input_state(driver.input_data, retro_keybinds, port, device, index, id)
|
||||||
#define input_key_pressed_func(key) null_input_key_pressed(driver.input_data, key)
|
#define input_key_pressed_func(key) null_input_key_pressed(driver.input_data, key)
|
||||||
#define input_free_func() null_input_free(driver.input_data)
|
#define input_free_func() null_input_free(driver.input_data)
|
||||||
#define gfx_ctx_window_has_focus() (true)
|
#define gfx_ctx_window_has_focus() (true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user