fire tv hack

This commit is contained in:
radius 2017-08-04 00:35:42 -05:00
parent 15b05fb057
commit a6b24b4d42
2 changed files with 24 additions and 1 deletions

View File

@ -11,7 +11,7 @@ static const char* stock_fragment_xmb_bokeh = GLSL(
uv.x *= OutputSize.x / OutputSize.y;
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 siz = pow(sin(float(i) * 651.74 + 5.0) * 0.5 + 0.5, 4.0);

View File

@ -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
* These are mostly remote control type devices, bind them always to port 0
* And overwrite the binding whenever a controller button is pressed