Commit graph

47 commits

Author SHA1 Message Date
antoniou
1fc4fa8e1f ANDROID: A tentative handling of handling joystick control
Basically as a virtual mouse
2020-10-25 02:37:26 +03:00
Cameron Cawley
6d68f2fe8b ANDROID: Use the input enums from the system headers 2020-10-09 07:58:52 +03:00
antoniou
a51d3ccb4d ANDROID: Fix for buggy backspace behavior in TYPE_NULL inputType
Code taken from https://stackoverflow.com/a/19980975
2020-10-01 00:13:38 +03:00
Cameron Cawley
cf068bcc08 ALL: Remove direct use of OSystem::createMutex() 2020-08-21 09:39:00 +02:00
Cameron Cawley
27e8467b28 ANDROID: Add support for additional mouse buttons 2020-04-07 13:55:30 +03:00
Cameron Cawley
fffb25a47a
ANDROID: Add basic keymapper support (#2026)
* ANDROID: Remove hard-coded key mappings

* ANDROID: Add default key bindings
2020-02-26 10:23:47 +02:00
Cameron Cawley
c9824ad206 ANDROID: Improve handling of system keys
- Unrecognised system keys are treated as regular keys.
- Key down events are always sent when pressing the Menu or Back buttons.
2020-01-20 21:36:05 +00:00
Cameron Cawley
24b9e9f390 ANDROID: Remove old and broken keymapper code
This isn't needed after commit 665e472.
2020-01-20 13:54:41 +00:00
Thanasis Antoniou
d105041d80 ANDROID: Long press for back button has an alternate (menu button) function 2019-12-14 15:04:43 +02:00
Cameron Cawley
d584df6a0e ANDROID: Improve keyboard support (#1857) 2019-12-14 14:48:47 +02:00
Thanasis Antoniou
3e9504856f ANDROID: Override UTF-8 compliant definition of vsn_printf
This sets Android as a non-standard port in configure in order to override the definition for vsn_printf

The vsn_printf implementation is taken from https://github.com/weiss/c99-snprintf
2019-11-12 20:01:43 +02:00
Cameron Cawley
38beac8d95 ANDROID: Simplify handling of menu/back button events 2019-10-23 07:41:31 +03:00
Cameron Cawley
94a53ccb0f ANDROID: Add swap menu and back buttons option 2019-10-23 07:41:31 +03:00
Cameron Cawley
7a05624e1b
ANDROID: Rewrite to make use of OpenGLGraphicsManager (#1695)
* ANDROID: Rewrite to make use of OpenGLGraphicsManager

* ANDROID: Fix emulated mouse button up events
2019-09-08 19:37:48 +01:00
Cameron Cawley
475eafc6c6 ANDROID: Don't deinitialize the EGL surface when pausing the application
Fixes Trac#6129
2019-08-18 22:48:08 +01:00
Cameron Cawley
6989e63a25 ANDROID: Make pushEvent take 7 parameters instead of 6 2019-05-09 18:58:09 +01:00
Cameron Cawley
2af325f60a ANDROID: Factor event pushing into pushEvent
Originally from ResidualVM.
2019-04-12 21:42:54 +01:00
Cameron Cawley
d75a1355ba ANDROID: Move event types to a separate file
Originally from ResidualVM.
2019-04-12 21:39:07 +01:00
Bastien Bouclet
8beb519c5e EVENTS: Rename synthetic to kbdRepeat 2017-11-19 16:12:50 +01:00
Matthew Garrett
832d7bb289 ANDROID: Add support for ScummVM menu on Android TV devices
Android TV devices don't have menu buttons. Remotes should have a play/pause
button (which may send individual play and pause events rather than a
combined event) and gamepads should have a Y button. Use these to open the
menu.
2016-05-22 15:23:44 -07:00
D G Turner
37c46fecbf ANDROID: Fix correct keycode in keymapper for virtual keyboard trigger.
As the virtual keyboard trigger has been moved to CTRL-F7, the previous
code which generates a unmodified F7 event to do this will not work.

However, due to the complexity of this code, directly calling the
virtual keyboard trigger event could have side effects, so have instead
just added the CTRL modifier to fix this.

This should be fixed if possible to use EVENT_VIRTUAL_KEYBOARD.
2014-05-05 05:21:23 +01:00
Johannes Schickel
5c2dac59be ANDROID: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
Marcus Comstedt
bb39cbcba4 ANDROID: Enter main menu on middle mouse press 2013-08-08 15:16:06 +02:00
Marcus Comstedt
a50ede203b ANDROID: Add support for joystick motion 2013-08-08 14:53:36 +02:00
Marcus Comstedt
1b69f8aede ANDROID: Add gamepad button support 2013-08-08 14:08:30 +02:00
Lauri Härsilä
2109317564 ANDROID: Mouse and stylus support
From pull request #285.
2012-10-19 22:50:09 +02:00
Tarek Soliman
6afac4e01e KEYMAPPER: Rename HardwareKey to HardwareInput 2012-02-27 13:00:56 -06:00
Tarek Soliman
aa42d78658 KEYMAPPER: Remove automapping dead code 2012-02-21 08:20:40 -06:00
Tarek Soliman
edc5249772 JANITORIAL: Fix template definition whitespace 2012-02-10 21:17:27 -06:00
Alyssa Milburn
4763b2c51b ANDROID: Add faked input delay.
This adds an artificial delay for mouse up events to make engines
like Gob work, similar to the iPhone fix in b3062b5e.
2012-02-03 12:36:03 +01:00
Tarek Soliman
d143872be6 KEYMAPPER: Constantify global keymap name 2012-01-07 21:20:29 -06:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
dhewg
bfecb37501 ANDROID: Get rid of Fn->ALT metakey mapping
Thanks to Ge0rG for the analysis
2011-05-07 19:44:21 +02:00
Max Horn
a50c36d138 ANDROID: Fix various forbidden symbol clashes 2011-05-03 14:29:01 +02:00
dhewg
a565e63c48 ANDROID: Add multitouch support 2011-04-06 18:27:15 +02:00
dhewg
b45640c47b ANDROID: Fix off-by-one when clipping mouse coords 2011-04-06 15:21:31 +02:00
dhewg
ea4223d941 ANDROID: Always use the surface size for the overlay
When coming back from standby, there might be an indermediate surface
change
2011-04-03 20:34:24 +02:00
dhewg
dd1c52fd82 ANDROID: Map right click to Camera/Search 2011-03-30 23:39:34 +02:00
dhewg
68908773ac ANDROID: Use 'our' ASCII codes for special keys
Fixes stuff like enter key on SCI games with text input
2011-03-25 19:52:33 +01:00
dhewg
c77e7f75a6 ANDROID: Trust ASCII kbd codes on unknown keys 2011-03-20 13:29:21 +01:00
dhewg
3e3619feb8 ANDROID: Cleanup 2011-03-18 22:14:54 +01:00
dhewg
e056bfca9c ANDROID: Seperate DPAD codes 2011-03-18 21:53:25 +01:00
dhewg
b721547213 ANDROID: Implement trackball click 2011-03-18 21:53:25 +01:00
dhewg
8953581ec9 ANDROID: Ignore the slop area on all touch scrolls
Prevents initial cursor jumps
2011-03-17 21:01:49 +01:00
dhewg
23213d23dc ANDROID: Log ASCII code of invalid keycodes 2011-03-17 19:35:57 +01:00
dhewg
adef4c3f42 ANDROID: Input system overhaul
Rewritten input system with many new feature.
Fixed related bugs and shortcomings on the way.
2011-03-16 20:54:49 +01:00