mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
fire tv hack
This commit is contained in:
parent
15b05fb057
commit
a6b24b4d42
@ -11,7 +11,7 @@ static const char* stock_fragment_xmb_bokeh = GLSL(
|
|||||||
uv.x *= OutputSize.x / OutputSize.y;
|
uv.x *= OutputSize.x / OutputSize.y;
|
||||||
vec3 color = vec3(0.0);
|
vec3 color = vec3(0.0);
|
||||||
|
|
||||||
for( int i=0; i < 8; i++ )
|
for( int i=0; i < 48; i++ )
|
||||||
{
|
{
|
||||||
float pha = sin(float(i) * 546.13 + 1.0) * 0.5 + 0.5;
|
float pha = sin(float(i) * 546.13 + 1.0) * 0.5 + 0.5;
|
||||||
float siz = pow(sin(float(i) * 651.74 + 5.0) * 0.5 + 0.5, 4.0);
|
float siz = pow(sin(float(i) * 651.74 + 5.0) * 0.5 + 0.5, 4.0);
|
||||||
|
@ -1072,6 +1072,29 @@ static void handle_hotplug(android_input_t *android,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Amazon Fire TV & Fire stick */
|
||||||
|
else if(strstr(device_model, "AFTM") || strstr(device_model, "AFTS"))
|
||||||
|
{
|
||||||
|
RARCH_LOG("Special Device Detected: %s\n", device_model);
|
||||||
|
{
|
||||||
|
/* always map remote to port #0 */
|
||||||
|
if (strstr(device_name, "Amazon Fire TV Remote")
|
||||||
|
{
|
||||||
|
android->pads_connected = 0;
|
||||||
|
*port = 0;
|
||||||
|
strlcpy(name_buf, device_name, sizeof(name_buf));
|
||||||
|
}
|
||||||
|
/* remove the remote when a gamepad enters */
|
||||||
|
else if(strstr(android->pad_states[0].name,"Amazon Fire TV Remote"))
|
||||||
|
{
|
||||||
|
android->pads_connected = 0;
|
||||||
|
*port = 0;
|
||||||
|
strlcpy(name_buf, device_name, sizeof(name_buf));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
strlcpy(name_buf, device_name, sizeof(name_buf));
|
||||||
|
}
|
||||||
|
|
||||||
/* Other uncommon devices
|
/* Other uncommon devices
|
||||||
* These are mostly remote control type devices, bind them always to port 0
|
* These are mostly remote control type devices, bind them always to port 0
|
||||||
* And overwrite the binding whenever a controller button is pressed
|
* And overwrite the binding whenever a controller button is pressed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user