mirror of
https://github.com/libretro/RetroArch.git
synced 2025-03-01 22:26:46 +00:00
Add HAVE_HID ifdefs
This commit is contained in:
parent
060753258a
commit
0751cb238d
@ -164,6 +164,7 @@ static input_device_driver_t *joypad_drivers[] = {
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef HAVE_HID
|
||||||
static hid_driver_t *hid_drivers[] = {
|
static hid_driver_t *hid_drivers[] = {
|
||||||
#if defined(HAVE_BTSTACK)
|
#if defined(HAVE_BTSTACK)
|
||||||
&btstack_hid,
|
&btstack_hid,
|
||||||
@ -180,6 +181,7 @@ static hid_driver_t *hid_drivers[] = {
|
|||||||
&null_hid,
|
&null_hid,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct turbo_buttons turbo_buttons_t;
|
typedef struct turbo_buttons turbo_buttons_t;
|
||||||
|
|
||||||
@ -1577,6 +1579,7 @@ void input_conv_analog_id_to_bind_id(unsigned idx, unsigned ident,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_HID
|
||||||
/**
|
/**
|
||||||
* hid_driver_find_handle:
|
* hid_driver_find_handle:
|
||||||
* @idx : index of driver to get handle to.
|
* @idx : index of driver to get handle to.
|
||||||
@ -1649,6 +1652,7 @@ const hid_driver_t *input_hid_init_first(void)
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void osk_update_last_codepoint(const char *word)
|
static void osk_update_last_codepoint(const char *word)
|
||||||
{
|
{
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
#include <retro_common_api.h>
|
#include <retro_common_api.h>
|
||||||
#include <retro_inline.h>
|
#include <retro_inline.h>
|
||||||
@ -590,6 +594,7 @@ const char *input_joypad_name(const input_device_driver_t *driver,
|
|||||||
|
|
||||||
bool input_config_get_bind_idx(unsigned port, unsigned *joy_idx_real);
|
bool input_config_get_bind_idx(unsigned port, unsigned *joy_idx_real);
|
||||||
|
|
||||||
|
#ifdef HAVE_HID
|
||||||
/**
|
/**
|
||||||
* hid_driver_find_handle:
|
* hid_driver_find_handle:
|
||||||
* @index : index of driver to get handle to.
|
* @index : index of driver to get handle to.
|
||||||
@ -627,6 +632,7 @@ const char* config_get_hid_driver_options(void);
|
|||||||
const hid_driver_t *input_hid_init_first(void);
|
const hid_driver_t *input_hid_init_first(void);
|
||||||
|
|
||||||
const void *hid_driver_get_data(void);
|
const void *hid_driver_get_data(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Line complete callback.
|
/** Line complete callback.
|
||||||
* Calls back after return is pressed with the completed line.
|
* Calls back after return is pressed with the completed line.
|
||||||
@ -717,11 +723,13 @@ extern input_driver_t input_winraw;
|
|||||||
extern input_driver_t input_wayland;
|
extern input_driver_t input_wayland;
|
||||||
extern input_driver_t input_null;
|
extern input_driver_t input_null;
|
||||||
|
|
||||||
|
#ifdef HAVE_HID
|
||||||
extern hid_driver_t iohidmanager_hid;
|
extern hid_driver_t iohidmanager_hid;
|
||||||
extern hid_driver_t btstack_hid;
|
extern hid_driver_t btstack_hid;
|
||||||
extern hid_driver_t libusb_hid;
|
extern hid_driver_t libusb_hid;
|
||||||
extern hid_driver_t wiiusb_hid;
|
extern hid_driver_t wiiusb_hid;
|
||||||
extern hid_driver_t null_hid;
|
extern hid_driver_t null_hid;
|
||||||
|
#endif
|
||||||
|
|
||||||
RETRO_END_DECLS
|
RETRO_END_DECLS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user