Added CH Flightstick Pro emulation.

This commit is contained in:
SarahW 2016-07-20 22:04:50 +01:00
commit 68fdba354f
11 changed files with 302 additions and 26 deletions

View file

@ -6,6 +6,7 @@
#include "timer.h"
#include "gameport.h"
#include "joystick_ch_flightstick_pro.h"
#include "joystick_standard.h"
#include "joystick_sw_pad.h"
@ -17,6 +18,7 @@ static joystick_if_t *joystick_list[] =
&joystick_standard_4button,
&joystick_standard_6button,
&joystick_standard_8button,
&joystick_ch_flightstick_pro,
&joystick_sw_pad,
NULL
};
@ -43,6 +45,11 @@ int joystick_get_button_count(int joystick)
return joystick_list[joystick]->button_count;
}
int joystick_get_pov_count(int joystick)
{
return joystick_list[joystick]->pov_count;
}
char *joystick_get_axis_name(int joystick, int id)
{
return joystick_list[joystick]->axis_names[id];
@ -53,6 +60,11 @@ char *joystick_get_button_name(int joystick, int id)
return joystick_list[joystick]->button_names[id];
}
char *joystick_get_pov_name(int joystick, int id)
{
return joystick_list[joystick]->pov_names[id];
}
typedef struct gameport_axis_t
{
int count;