mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
(Libxenon) D-pad works now in ROM browser menu
This commit is contained in:
parent
ee43531a99
commit
325a9fb48e
@ -139,9 +139,9 @@ int main(void)
|
||||
usb_do_poll();
|
||||
get_controller_data(&pad, 0);
|
||||
|
||||
if (pad.s1_y > STICK_THRESHOLD)
|
||||
if (pad.s1_y > STICK_THRESHOLD || pad.up)
|
||||
pos--;
|
||||
if (pad.s1_y < -STICK_THRESHOLD)
|
||||
if (pad.s1_y < -STICK_THRESHOLD || pad.down)
|
||||
pos++;
|
||||
|
||||
if (entrycount && (pos < 0 || pos >= entrycount))
|
||||
|
@ -17,23 +17,25 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "../driver.h"
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../driver.h"
|
||||
#include "../libsnes.hpp"
|
||||
|
||||
#include <input/input.h>
|
||||
#include <usb/usbmain.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
struct controller_data_s pad[5];
|
||||
static struct controller_data_s pad[4];
|
||||
|
||||
static void xenon360_input_poll(void *data)
|
||||
{
|
||||
(void)data;
|
||||
for (unsigned i = 0; i < 5; i++)
|
||||
for (unsigned i = 0; i < 4; i++)
|
||||
{
|
||||
usb_poll();
|
||||
usb_do_poll();
|
||||
get_controller_data(&pad[i], i);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user