Cameron Gutman
9c1a618b4a
Fix stuck analog stick when a touch event is cancelled
...
This can happen if a stylus hover event is received while touching an OSC element
2022-09-21 01:11:45 -05:00
Cameron Gutman
d9a5b29372
Fix OSC handling of touches outside the StreamView
2022-09-17 13:32:40 -05:00
Cameron Gutman
d2b0e093fc
Reduce power by avoiding resends when OSC state is not changing
2022-09-17 13:07:52 -05:00
Cameron Gutman
945e563912
Switch to a Handler for gamepad mouse emulation
2022-09-17 12:55:15 -05:00
Cameron Gutman
a7efa379eb
Switch to a Handler for OSC retransmission
2022-09-16 18:21:56 -05:00
Cameron Gutman
d04df4ebe5
Fix D-Pad buttons not releasing until all D-Pad input has ceased
2022-09-16 17:41:52 -05:00
Cameron Gutman
03f9ea8435
Use Handlers instead of Timers for one-shot events
2022-09-16 00:08:48 -05:00
Cameron Gutman
d1b24ea6af
Consolidate touch tracking timers
2022-09-15 02:05:40 -05:00
Cameron Gutman
b07ffbde29
Consolidate OSC timers
2022-09-15 01:59:29 -05:00
Cameron Gutman
dacd00708f
Don't sleep on the main thread in touch processing code
2022-08-02 18:20:05 -05:00
Cameron Gutman
a73129243c
Compensate for button down time when computing extra minimum button down
2022-08-02 18:14:10 -05:00
Cameron Gutman
54a6aa9081
Remove emulated button sleeps
2022-08-02 18:08:53 -05:00
Cameron Gutman
0fbb53c606
Remove MediaCodecHelper.getMonotonicMillis()
2022-08-02 18:08:12 -05:00
Cameron Gutman
eb2e79977d
Use event time on input events rather than current uptime
2022-08-02 18:07:15 -05:00
Cameron Gutman
a80d30baf7
Revert "Add support for 8bitdo sn30 pro xCloud ( #1102 )"
...
The broken mapping is due to an old firmware (see #978 ).
This reverts commit bfc3116661 .
2022-07-31 17:12:52 -05:00
peerobo
bfc3116661
Add support for 8bitdo sn30 pro xCloud ( #1102 )
...
* add support for 8bitdo sn30 pro xCloud
Co-authored-by: peerobo <phuongrobotics@me.com >
2022-07-20 08:37:32 -05:00
Cameron Gutman
1ed7ecc82f
Don't use FLAG_BYPASS_INTERRUPTION_POLICY
...
See https://issuetracker.google.com/issues/235875658
2022-07-19 23:02:31 -05:00
Cameron Gutman
ebd327c7a6
Use new ShieldControllerExtensions library for Shield Controller rumble support
...
https://github.com/cgutman/ShieldControllerExtensions
2022-06-30 18:04:02 -05:00
Cameron Gutman
a93422d3ed
Handle failure to bind com.nvidia.blakepairing more robustly
2022-06-18 14:31:38 -05:00
Cameron Gutman
529a2f7bf8
Prevent PiP entry while the USB permission dialog is open
2022-06-13 19:23:03 -05:00
Cameron Gutman
a73eab5e92
Handle stale controller token mappings upon device removal
2022-06-09 19:43:46 -05:00
Cameron Gutman
a8479ccb5f
Implement support for rumble for Shield controllers on Shield devices
2022-06-09 18:51:23 -05:00
Cameron Gutman
d08c32ce04
Map external keyboard keycodes to the QWERTY layout that GFE expects
2022-06-08 23:54:57 -05:00
Cameron Gutman
49898b34e1
Don't export UsbEventReceiver on Android 13
2022-06-08 22:16:58 -05:00
Cameron Gutman
9fc5496526
Use VibrationAttributes to bypass interruption policy
2022-06-08 20:26:36 -05:00
TacoTheDank
b5b3d81f00
Clean up flavors by using buildConfigField
2022-06-08 19:44:59 -05:00
Cameron Gutman
81a3bbd5e8
Implement remote desktop optimized mouse mode
2022-05-28 16:38:22 -05:00
Cameron Gutman
286094ee33
Add dead zone configuration option
...
Fixes #1075
2022-05-28 15:12:58 -05:00
Cameron Gutman
fb09c9692c
Fix handling of InterruptedExceptions
2022-05-22 15:31:06 -05:00
Cameron Gutman
2203186527
Remove extra ViewGroup between OSC and StreamView
...
This allows touch events to be properly split
2022-05-08 14:39:32 -05:00
Cameron Gutman
8a63b61495
Avoid touchscreens when looking for pointer capture capable devices
2022-02-18 17:07:23 -06:00
Cameron Gutman
c0f8001627
Ignore relative mouse inputs from non-mouse tools
...
Apparently this can happen for the SPen on Android 12
2022-02-12 19:50:59 -06:00
Cameron Gutman
4b2e26050e
Only enable pointer capture if a compatible input device is connected
2022-02-12 14:21:19 -06:00
Cameron Gutman
530b48de71
Move recapture on focus gain logic to InputCaptureProvider
2022-02-12 13:58:55 -06:00
Cameron Gutman
4a60ec1755
Fix excessive high-res scroll speed on newer GFE versions
2021-12-14 22:02:12 -06:00
Cameron Gutman
04545ecbb0
Avoid tons of redundant calls to InputEvent.getSource()
2021-07-17 14:01:12 -05:00
Cameron Gutman
5350651d6f
Fix crash when using USB driver on Android 12
2021-07-17 13:59:11 -05:00
Cameron Gutman
54af70005d
Fix spurious gamepad removal when entering PiP with PS4 controller on Android 12
...
The relative mouse axes AXIS_RELATIVE_X/Y are added/removed when gaining/losing input focus
2021-07-16 19:51:14 -05:00
Cameron Gutman
f2bf168925
Fix possible rumble crash if only the lower motor byte is non-zero
2021-07-16 19:25:10 -05:00
Cameron Gutman
73784585a8
Fix new Android 12 rumble code based on real hardware testing
...
Independent rumble motor controller tested working on:
- DualShock 4 (USB and BT)
- DualShock 3 (USB)
- Xbox Series X (USB)
2021-07-15 19:51:08 -05:00
Cameron Gutman
262d562dd9
Implement enhanced rumble support for Android 12 devices
...
This allows independent control of large and small motors which
was not possible with the old single Vibrator API.
Currently untested on real hardware.
2021-07-14 20:18:35 -05:00
Cameron Gutman
86ee30e9b4
Don't process drags for the non-primary finger
2021-06-24 23:19:06 -05:00
Cameron Gutman
a8a356e703
Add Amazon Luna support in Xbox 360 driver
2021-04-03 11:45:02 -05:00
Cameron Gutman
04efec101e
Sync Xbox driver VIDs with Linux 5.11
2021-03-20 18:49:34 -05:00
Cameron Gutman
45436c006f
Cancel a pending drag timer before setting a new one
2021-03-20 11:04:34 -05:00
Cameron Gutman
cc183c0da8
Cancel a pending timer before setting a new one
2021-03-20 10:59:47 -05:00
Cameron Gutman
da103f7197
Don't use our built-in Switch Pro mapping on Android 10+
2021-02-28 16:35:17 -06:00
Cameron Gutman
20ced841dd
Handle pointer capture on SOURCE_TOUCHPAD devices
2021-02-27 15:48:37 -06:00
Cameron Gutman
1c806bb572
Only use the virtual device as a gamepad if at least one gamepad is present
2021-01-31 19:42:41 -06:00
Cameron Gutman
963133598f
Add hack to work around https://issuetracker.google.com/issues/163120692
2021-01-31 19:29:57 -06:00