mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
(BTStack) Move btpad_set_inquery_state calls to btstack_hid.c
This commit is contained in:
parent
2a6f38a929
commit
37d45643f9
@ -623,8 +623,6 @@ void bt_send_rfcomm(uint16_t rfcom_cid, uint8_t *data, uint16_t len);
|
||||
|
||||
/* custom functions */
|
||||
|
||||
void btpad_set_inquiry_state(bool on);
|
||||
|
||||
joypad_connection_t *slots;
|
||||
|
||||
typedef struct btstack_hid
|
||||
@ -1025,7 +1023,7 @@ static void btpad_connection_send_control(void *data,
|
||||
bt_send_l2cap_ptr(connection->channels[0], data_buf, size);
|
||||
}
|
||||
|
||||
void btpad_set_inquiry_state(bool on)
|
||||
static void btpad_set_inquiry_state(bool on)
|
||||
{
|
||||
inquiry_off = !on;
|
||||
|
||||
@ -1424,6 +1422,7 @@ static void btstack_hid_free(void *data)
|
||||
return;
|
||||
|
||||
pad_connection_destroy(hid->slots);
|
||||
btpad_set_inquiry_state(true);
|
||||
|
||||
if (hid)
|
||||
free(hid);
|
||||
@ -1442,6 +1441,7 @@ static void *btstack_hid_init(void)
|
||||
goto error;
|
||||
|
||||
btstack_set_poweron(false);
|
||||
btpad_set_inquiry_state(false);
|
||||
|
||||
return hid;
|
||||
|
||||
|
@ -37,9 +37,6 @@ static CFRunLoopObserverRef iterate_observer;
|
||||
|
||||
/* forward declaration */
|
||||
void apple_rarch_exited(void);
|
||||
#ifdef HAVE_BTSTACK
|
||||
void btpad_set_inquiry_state(bool on);
|
||||
#endif
|
||||
|
||||
static void rarch_enable_ui(void)
|
||||
{
|
||||
@ -282,10 +279,6 @@ enum
|
||||
self.mainmenu.last_menu = self.mainmenu;
|
||||
[self pushViewController:self.mainmenu animated:NO];
|
||||
|
||||
#ifdef HAVE_BTSTACK
|
||||
btpad_set_inquiry_state(false);
|
||||
#endif
|
||||
|
||||
[self refreshSystemConfig];
|
||||
[self showGameView];
|
||||
|
||||
@ -454,9 +447,6 @@ void apple_rarch_exited(void)
|
||||
if (!ap)
|
||||
return;
|
||||
[ap showPauseMenu:ap];
|
||||
#ifdef HAVE_BTSTACK
|
||||
btpad_set_inquiry_state(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
typedef struct ui_companion_cocoatouch
|
||||
|
Loading…
Reference in New Issue
Block a user