net retropad core: Add analog device processing

This commit is contained in:
Sebastien Ronsse 2016-07-27 20:14:43 +10:00
parent 0d7571a43d
commit a778d878ff
1 changed files with 12 additions and 1 deletions

View File

@ -94,8 +94,19 @@ static struct descriptor joypad = {
.id_max = RETRO_DEVICE_ID_JOYPAD_R3
};
static struct descriptor analog = {
.device = RETRO_DEVICE_ANALOG,
.port_min = 0,
.port_max = 0,
.index_min = RETRO_DEVICE_INDEX_ANALOG_LEFT,
.index_max = RETRO_DEVICE_INDEX_ANALOG_RIGHT,
.id_min = RETRO_DEVICE_ID_ANALOG_X,
.id_max = RETRO_DEVICE_ID_ANALOG_Y
};
static struct descriptor *descriptors[] = {
&joypad
&joypad,
&analog
};
void NETRETROPAD_CORE_PREFIX(retro_init)(void)