Merge pull request #12511 from markwkidd/android-input-fix
[Android input driver] do not duplicate port 0 mouse and gun inputs to other ports
This commit is contained in:
commit
a6b0199204
|
@ -1407,6 +1407,7 @@ static int16_t android_input_state(
|
||||||
case RETRO_DEVICE_MOUSE:
|
case RETRO_DEVICE_MOUSE:
|
||||||
{
|
{
|
||||||
int val = 0;
|
int val = 0;
|
||||||
|
if(port > 0) return 0; /* TODO: implement mouse for additional ports/players */
|
||||||
switch (id)
|
switch (id)
|
||||||
{
|
{
|
||||||
case RETRO_DEVICE_ID_MOUSE_LEFT:
|
case RETRO_DEVICE_ID_MOUSE_LEFT:
|
||||||
|
@ -1439,6 +1440,7 @@ static int16_t android_input_state(
|
||||||
case RETRO_DEVICE_LIGHTGUN:
|
case RETRO_DEVICE_LIGHTGUN:
|
||||||
{
|
{
|
||||||
int val = 0;
|
int val = 0;
|
||||||
|
if(port > 0) return 0; /* TODO: implement lightgun for additional ports/players */
|
||||||
switch (id)
|
switch (id)
|
||||||
{
|
{
|
||||||
case RETRO_DEVICE_ID_LIGHTGUN_X:
|
case RETRO_DEVICE_ID_LIGHTGUN_X:
|
||||||
|
|
Loading…
Reference in New Issue