Remove DS3 BT pairing customization.
This commit is contained in:
@@ -1504,20 +1504,12 @@ static void joy_analog(int num, int axis, int offset)
|
||||
}
|
||||
}
|
||||
|
||||
static int ps3_sel = 0;
|
||||
int is_ps3_sel()
|
||||
{
|
||||
return ps3_sel;
|
||||
}
|
||||
|
||||
static int ds_ver = 0;
|
||||
|
||||
static void input_cb(struct input_event *ev, struct input_absinfo *absinfo, int dev)
|
||||
{
|
||||
static int key_mapped = 0;
|
||||
|
||||
if (ev->type == EV_KEY && input[dev].vid == 0x054c && input[dev].pid == 0x0268 && ev->code == 0x13a) ps3_sel = ev->value;
|
||||
|
||||
if (ev->type == EV_KEY && mapping && mapping_type == 3 && ev->code == input[dev].mmap[17]) ev->code = KEY_ENTER;
|
||||
|
||||
int map_skip = (ev->type == EV_KEY && ev->code == KEY_SPACE && ((mapping_dev >= 0 && mapping_type==1) || mapping_button<0));
|
||||
|
||||
1
input.h
1
input.h
@@ -36,7 +36,6 @@ int toggle_kbdled(int mask);
|
||||
void input_notify_mode();
|
||||
int input_poll(int getchar);
|
||||
int is_key_pressed(int key);
|
||||
int is_ps3_sel();
|
||||
|
||||
void start_map_setting(int cnt);
|
||||
int get_map_button();
|
||||
|
||||
2
menu.cpp
2
menu.cpp
@@ -3502,7 +3502,7 @@ void HandleUI(void)
|
||||
for (int i = 0; i < script_lines; i++) strcpy(script_output[i], "");
|
||||
script_line=0;
|
||||
script_exited = false;
|
||||
script_pipe=popen((parentstate != MENU_BTPAIR) ? getFullPath(SelectedPath) : is_ps3_sel() ? "/usr/sbin/btpair sixaxis" : "/usr/sbin/btpair", "r");
|
||||
script_pipe=popen((parentstate != MENU_BTPAIR) ? getFullPath(SelectedPath) : "/usr/sbin/btpair", "r");
|
||||
script_file = fileno(script_pipe);
|
||||
fcntl(script_file, F_SETFL, O_NONBLOCK);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user