Commit Graph

23 Commits

Author SHA1 Message Date
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02: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
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
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
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
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
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
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Klaus Reimer
9e4edcdc1f WEBOS: Removed unused gestureDownTime 2011-05-08 20:58:08 +02:00
Klaus Reimer
cc0d8b6252 WEBOS: Fixed ESCAPE and MENU key on WebOS 1 2011-05-08 20:58:08 +02:00
Max Horn
3d4e9fe674 BACKENDS: Allow various files to use stuff from time.h 2011-05-03 11:27:44 +02:00
Max Horn
dbca3045cd WEBOS: Fix compilation 2011-04-29 13:18:42 +02:00
Paul Gilbert
aadb4f7459 WEBOS: Moved #include lines inside #ifdef WEBOS to fix MSVC compilation 2011-04-13 20:46:24 +10:00
Klaus Reimer
6c94353eff WEBOS: Complete rewrite of key/mouse events handling
Touchscreen is now always used like a touch pad.
2011-04-12 11:11:17 +02:00
Klaus Reimer
aa79a2634d WEBOS: Enable keymapper, implement FORWARD key and right+middle button clicks 2011-04-12 11:05:53 +02:00
Klaus Reimer
a4e757834e WEBOS: Create webos backend with custom events
Currently only contains test code.
2011-04-12 11:05:35 +02:00