Commit Graph

194 Commits

Author SHA1 Message Date
Tarek Soliman
3f6d549b0e KEYMAPPER: Move F7 and F8 handling to DefaultEventMapper 2012-02-20 06:49:22 -06:00
Tarek Soliman
cfe91c8d44 KEYMAPPER: Move CTRL-F5 handling to DefaultEventMapper 2012-02-20 06:49:22 -06:00
Tarek Soliman
5c3e48fddf KEYMAPPER: Create a DefaultEventMapper when Keymapper isn't enabled
This allows migration to unconditional mapping
2012-02-20 06:49:22 -06:00
Tarek Soliman
53d6ef1209 MAEMO: Fix building without keymapper enabled 2012-02-17 14:42:39 -06:00
Tarek Soliman
85c8c84804 KEYMAPPER: Add more warning signs 2012-02-15 17:22:41 -06:00
Tarek Soliman
974f5eb7b8 MAEMO: Drop the hardcoded keymap in favor of the keymapper 2012-02-15 17:07:52 -06:00
Tarek Soliman
7ae7e80739 MAEMO: Rename hasHwKeyboard and add hasMenuKey 2012-02-15 16:38:53 -06:00
Tarek Soliman
ea325909cf MAEMO: Fix wrong assert 2012-02-15 12:40:49 -06:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Tarek Soliman
c2640ed33a MAEMO: Use custom event Click Mode keymap action 2012-02-12 13:28:13 -06:00
Tarek Soliman
d90d4d10a0 MAEMO: Refactor toggle click mode 2012-02-12 13:28:13 -06:00
Klaus Reimer
7ee77cbd26 WEBOS: Renamed "Touchpad Mode" to "Trackpad Mode" to prevent confusion because one of the target devices is called the "HP Touchpad". 2012-01-28 11:44:31 +01:00
dhewg
cc98a1acea WEBOS: Fix whitespace error
Random whitespace fix to kick off the OpenPandora toolchain on
buildbot.
2012-01-21 18:47:36 +01:00
Tarek Soliman
dabea2b515 MAMEO: Add GMM keybinding for N900 (fix bug #3443043)
The keybinding is Ctrl-Shift-m.
Ctrl-m is more desirable but is toggling mouse capture.
2011-11-29 11:25:58 -06:00
Willem Jan Palenstijn
84bc565127 Merge pull request #89 from TomFrost/master
HP TouchPad compatibility and full WebOS port update, Round 2

This is a manual merge of the pull request, with some commit message changes.
2011-10-19 13:57:09 +02:00
Tarek Soliman
174b8d6807 MAEMO: Add initial N800 support with Fullscreen key mapped to Virtual Keyboard
N800 doesn't have a CTRL key to activate the virtual keyboard with.
Fullscreen can still be enabled/disabled through the GUI and was the most
likely sacrifice as a hardware key.
2011-10-11 20:05:52 -05:00
Tarek Soliman
4ee07c848e MAEMO: Migrate MaemoSdlEventSource to Maemo namespace
Also add some comments to the #endifs
2011-10-11 19:54:16 -05:00
David-John Willis
a27c2b401c OPENPANDORA: Cleanup the format of code a little to match our Code Formatting Conventions.
* No functional changes.
* Automated astyle pass.
2011-10-10 21:18:07 +01:00
David-John Willis
6269dcdd3c GPH: Cleanup the format of code to match our Code Formatting Conventions.
* No functional changes.
2011-10-03 13:43:42 +01:00
TomFrost
dbd391bdfe WebOS: Add improvements suggested in pull req. 89.
The improvements in this commit are mostly code formatting, variable
abstraction, and in one case, a performance enhancement as calculations
were made a one-time fire rather than being run with every mouse move
event.
2011-10-01 23:03:15 -04:00
Johannes Schickel
5ea975ad0c SDL: Fix indentation. 2011-10-01 15:53:15 +02:00
Matthew Hoops
622e8d9da6 BACKENDS: Set alt+f4 to be used for quitting on Windows 2011-09-30 23:47:36 -04:00
TomFrost
c958701c78 WebOS: Make right-clicks last longer.
While the right-click was working in most games, the
weapon-switching in Full Throttle wasn't registering the click.
Holding the button down for 50ms instead of immediately firing
the mouseup fixes the issue.
2011-09-25 14:13:47 -04:00
TomFrost
d7abbb523c WebOS: Change to multitouch control scheme.
This is a near-rewrite of the WebOS event system to take
advantage of multitouch, with which all WebOS devices are
outfitted. This commit also marks full compatibility with the
HP TouchPad, or any future tablet device without a hardware
keyboard.

Controls:
 - Left click: Single-tap once
 - Right click: Put one finger on screen, single-tap another
 - Middle click: Put two fingers on screen, single-tap another
 - Menu: Swipe two fingers down
 - Show keyboard: Swipe two fingers up
 - Touchpad Mode:
   - Swipe two fingers to the right to toggle
   - When off (default) mouse will move to the location tapped
   - When on, mouse will move relative to its current position
 - Autodrag Mode:
   - Swipe three fingers to the right to toggle
   - When on (default), touching the screen and holding still
     for a half-second will initiate a left-mouse button hold.
	 Useful for games like COMI and FT.
   - When off (or on) a double-tap will initiate a left-mouse
     button hold.
 - Escape key: Swipe two fingers left
 - Space bar (pause): Swipe three fingers down
2011-09-25 12:06:06 -04:00
TomFrost
f88191ae1e WebOS: Correct code convention and graphic errors.
This is a mass commit for the following items:
 - Conversion of mixed and unaligned spaces/tabs to tabs
 - Moved static globals in webos_events to class members
 - Corrected variable naming convention to use underscores
 - Added a constructor to WebOSSdlEventSource to initialize
   variables.
 - Changed SDL getWidth and getHeight calls to getOverlayWidth
   and getOverlayHeight to support larger form factors (such
   as the HP TouchPad).
 - Removed unnecessary static getMillis() declaration and
   changed existing code to use the built-in getMillis().
2011-09-24 17:21:24 -04:00
Tarek Soliman
9aad73be5e MAEMO: enable virtual keyboard and add keymapping 2011-09-22 22:07:45 -05:00
Tarek Soliman
ac20718363 MAEMO: Enable/Disable clicking now displays OSD message 2011-09-22 22:07:45 -05:00
Tarek Soliman
912a040534 MAEMO: Zoom- is now mode selector for clicking 2011-09-22 22:07:45 -05:00
Tarek Soliman
5bb506fcff MAEMO: keymap zoom+ and zoom- keys to right and middle click 2011-09-22 22:07:45 -05:00
Tarek Soliman
e50b2477d2 MAEMO: keymap fullscreen button 2011-09-22 22:07:44 -05:00
Tarek Soliman
bafaeef24a MAEMO: initial keymapper that keymaps menu button 2011-09-22 22:07:44 -05:00
Tarek Soliman
09b9fbfba9 MAEMO: Add basic platform backend with stubbed keymapper 2011-09-22 22:07:44 -05:00
TomFrost
5c1f13251e Merge branch 'master' of git://github.com/nexapps/scummvm into nexapps 2011-09-03 14:23:14 -04:00
Doron Rosenberg
28201a1e9d WebOS: not handling keyboard dismiss in keydown breaks things 2011-08-10 17:44:48 -07:00
Johannes Schickel
04ab0e58b4 SDL: Take advantage of SdlGraphicsManager.
This gets rid of the hacks, where SdlEventSource added events with custom type
numbers to pass SDL_VIDEOEXPOSE and SDL_VIDEORESIZE to the graphics manager.

Furthermore it get rids of the uninituitive and hard to trace way of assigning
the proper mouse coordinates to mouse related events. Formerly it passed the
real screen coordinates through the even dispatching api to the graphics
manager (at least hopefully ;-) and let that handle creating a new event with
the proper coordinates. Now instead SdlEventSource handles the proper
coordinate setup itself.

Since this is a behavior change and I can not test all the SDL based small
devices ports this commit might break compilation for them and more serve it
might also break mouse position behavior. If any of that occurs I am sorry
about it.
2011-08-09 00:03:11 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Bastien Bouclet
2daf69267d SDL: Don't rely on SDL keycodes and OSystem keycodes being the same.
SDL 1.3 shuffles keycodes around ...
2011-08-06 15:52:02 +02:00
Doron Rosenberg
82a3cc0ac0 WebOS: fix indentation, make sure to return true when opening the keyboard 2011-08-04 10:50:19 -07:00
Doron Rosenberg
0ceb7b4ccd WebOS: touchpad virtual keyboard 2011-08-04 10:44:06 -07:00
Doron Rosenberg
3126b06600 WebOS: touchpad work to show menu 2011-08-01 12:01:22 -07:00
CeRiAl
0a9b9fe08f WINCE: Added option to disable panel toggling with double tap on top of screen 2011-06-27 02:22:24 +02:00
Bastien Bouclet
f262d8932f PS3: Keep updating the screen while the XMB is open to prevent it from freezing 2011-06-22 19:57:44 +02:00
Bastien Bouclet
6633a06519 PS3: Map joypad buttons to features. Enable the virtual keyboard. 2011-06-22 19:57:44 +02:00
Bastien Bouclet
872d672c33 SDL: Allow building with current SDL 1.3hg 2011-06-22 19:44:46 +02:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Johannes Schickel
2067bec18e SDL: Remove left over traces from the time the SdlEventSource subclassed DefaultEventManager. 2011-06-19 19:35:27 +02:00
Thierry Crozat
06bbb57ad7 I18N: Make many more GUI MessageDialog strings translatable 2011-06-13 22:19:18 +01:00
CeRiAl
781132aabc WINCE: Some cleanup (public vs. private scopes), fix freelook 2011-06-11 23:29:52 +02:00
David-John Willis
4fcd65d885 OPENPANDORA: Start to cleanup the backend and move controls into remapkey.
* Work in progress.
2011-06-11 17:07:21 +01:00
David-John Willis
7878c1ec49 GP2X: Remove remnants of the old GP2X backend.
The GP2X is now folded into the GPH backend (as the GP2X device).
2011-06-11 17:07:08 +01:00