64 Commits

Author SHA1 Message Date
Cameron Gutman
2856617fb3 Only release controller numbers if they were reserved 2015-03-31 19:58:47 -04:00
Cameron Gutman
1148e0163c Only assign a controller number when a valid controller input has been received. Fixes misdetection of other input devices as controllers (issue #65). 2015-03-29 22:54:48 -04:00
Cameron Gutman
17afbffdb5 Include the time it takes to get an input buffer in the frame latency calculation 2015-03-25 01:08:23 -04:00
Cameron Gutman
072a439c2d Update common and decode unit API 2015-03-25 00:32:22 -04:00
Cameron Gutman
5847fbb6b6 Add TI decoders to the direct submit whitelist 2015-03-23 17:14:02 -04:00
Cameron Gutman
5c71f55993 Add another Exynos prefix 2015-03-23 16:51:32 -04:00
Cameron Gutman
a676b8d8e6 Restore the legacy path and only use direct submit for certain whitelisted decoders 2015-03-23 15:51:11 -04:00
Cameron Gutman
7ce29e3a09 Add a workaround for the Nexus 9 dropping frames with the new renderer 2015-03-16 21:26:02 -04:00
Cameron Gutman
42c65f4f16 Use smaller deadzones for SHIELD controllers 2015-03-16 19:36:09 -04:00
Cameron Gutman
bf2cc2a4d5 Don't assign controller numbers to devices that don't have an analog stick 2015-03-16 19:35:43 -04:00
Cameron Gutman
6d6d7121f6 Remove the Playpad Pro hack that worked around an issue with old firmware and caused the D-pad to be unresponsive on updated firmware. Fixes #41 2015-03-15 14:30:56 -07:00
Cameron Gutman
2ab67380d6 Use direct submit decoding for MediaCodec. Based on my profiling of a few devices, dequeueInputBuffer and queueInputBuffer don't take much time anyway. It allows us to stop our semi-busy looping which saves power. The depacketizer can avoid expensive synchronization and additional context switching which costs time and CPU cycles. 2015-03-09 01:49:52 -05:00
Cameron Gutman
e081ab5239 Code cleanup and Lint suggestions 2015-02-27 01:43:24 -05:00
Cameron Gutman
5519d92243 Disable the start key shortcut to start the keyboard because the keyboard can't receive input after it's started 2015-02-07 13:58:53 -05:00
Cameron Gutman
2fdecc551a Tabs -> Spaces 2015-02-07 11:54:46 -05:00
Cameron Gutman
b1ea487e22 Use the mode (power) button on the Asus Nexus Player Gamepad as a select button 2015-02-05 16:06:55 -05:00
Cameron Gutman
47265d0d10 Add another SELinux policy change needed on Nexus 9 2015-02-05 16:06:22 -05:00
Cameron Gutman
2247e43a48 Remove unused imports 2015-02-05 13:23:01 -05:00
Cameron Gutman
d3986080a3 Tighten up a bunch of declarations to make Lint happier 2015-02-05 13:21:04 -05:00
Cameron Gutman
b806522751 Unassign the controller number when a device is removed 2015-02-02 02:13:27 -05:00
Cameron Gutman
7e1884acb5 Trap Shield's back button as controller 0 2015-02-01 18:07:03 -05:00
Cameron Gutman
da7904a767 Add multiple controller support 2015-02-01 15:06:18 -05:00
Cameron Gutman
1dfcb7bc29 Fix root input device capture on the Nexus 9 2015-01-25 23:16:32 -05:00
Cameron Gutman
bcc67269ab Add gestures to bring up the software keyboard - Long press start or tap with 3 fingers 2015-01-25 22:55:12 -05:00
Cameron Gutman
3236c0b93a Lower the level_idc of the SPS to the minimum required for streaming at a given resolution 2014-12-01 22:58:52 -08:00
Cameron Gutman
51aacc3f38 Remove extra newlines 2014-12-01 22:39:17 -08:00
Cameron Gutman
397c6f46f9 Fix a security issue which caused input devices to remain world readable after the stream is ended 2014-12-01 22:29:16 -08:00
Cameron Gutman
d00f78f859 Revert square to circle analog work since it seems to be handled correctly already 2014-12-01 22:27:02 -08:00
Cameron Gutman
29fec2e0de Add initial support for rooted devices running Lollipop with SELinux set to enforcing. This should really be improved in the future since we're modifying policies for untrusted_app. 2014-12-01 22:26:35 -08:00
Cameron Gutman
de1f4da258 Apply the square to circle plane mapping before evaluating the deadzone. Cleanup some dead code. 2014-11-30 15:52:49 -06:00
Cameron Gutman
7985be57ab Translate the analog stick values of controllers with "square" analog stick planes (DS3, DS4, and others) to the circular plane that XInput programs expect 2014-11-30 15:35:20 -06:00
Cameron Gutman
a835e7aaa2 Increase DS4 controller responsiveness by ignoring historical values again 2014-11-30 12:34:30 -06:00
Cameron Gutman
db758f386e Comment out unused variable 2014-11-28 22:16:46 -06:00
Cameron Gutman
3fb3eefa94 Fix Nyko Playpad input issue 2014-11-28 22:16:33 -06:00
Cameron Gutman
d839ea9781 Increase deadzone on triggers to Xinput defaults and add special handling of the Nexus Player Controller and Nexus Remote 2014-11-25 14:54:36 -08:00
Cameron Gutman
2b7f13fdbb Increase max frame time to improve accuracy of latency counter 2014-11-25 13:34:00 -08:00
Cameron Gutman
7557a3a4ae Don't capture the back button on remotes 2014-11-25 11:16:47 -08:00
Cameron Gutman
fcecba484f Fix a crash caught by Monkey 2014-11-25 02:05:24 -08:00
Cameron Gutman
5dcff91d27 Only grab Fire TV remotes if a gamepad isn't attached 2014-11-24 18:43:08 -08:00
Cameron Gutman
09e8ddfd74 Use the bitstream restrictions fixup on Broadcom VideoCore IV devices 2014-11-24 18:03:47 -08:00
Cameron Gutman
695519bdf5 Reduce Nexus Player video latency by 10x 2014-11-22 22:05:59 -08:00
Cameron Gutman
bf7d033ab2 Don't use adaptive playback at all to avoid extra added latency on some decoders 2014-11-22 20:35:31 -08:00
Cameron Gutman
df67795c4a Use back as start on Android TV 2014-11-22 19:33:26 -08:00
Cameron Gutman
8eca3683c9 Add method for getting video decoder name 2014-11-21 11:08:35 -08:00
Cameron Gutman
e912e4de57 Don't do deadzone scaling because the PC should be handling that. Return to non-scaled controller packets. Disable the deadzone option in preferences. 2014-11-20 00:00:48 -08:00
Cameron Gutman
8dee1f0d80 Add a trigger deadzone 2014-11-19 23:59:42 -08:00
Cameron Gutman
53594ada66 Disable the Android TV controller hack for now 2014-11-19 23:27:10 -08:00
Cameron Gutman
848ed1ad72 Scale touch inputs based on the ratio of the stream size to the screen size 2014-11-19 23:26:50 -08:00
Cameron Gutman
307e807c8f Replay motion event history during input processing 2014-11-19 23:08:34 -08:00
Cameron Gutman
6a27780d56 Remove hat flat values 2014-11-19 22:57:17 -08:00