Commit Graph

270 Commits

Author SHA1 Message Date
Johannes Schickel
224cec46a7 WINCE: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +01:00
Johannes Schickel
5c27f7b04f WEBOS: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +01:00
Johannes Schickel
1b5c324811 SYMBIAN: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Johannes Schickel
63304ee9ec SDL: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Johannes Schickel
a3d012357e SAMSUNGTV: Make GPL headers consistent in themselves. 2014-02-18 02:39:37 +01:00
Johannes Schickel
6909a8e29a PS3: Make GPL headers consistent in themselves. 2014-02-18 02:39:37 +01:00
Johannes Schickel
cc2f3e23a4 OPENPANDORA: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel
4f34f44fbf MAEMO: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel
872b5fdf41 LINUXMOTO: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel
96564e95b4 GPH: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel
7803ce2fa4 DINGUX: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel
121687d2ed BACKENDS: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
Johannes Schickel
ce383aca1e MAEMO: Get rid of superfluous cast. 2014-01-24 03:28:45 +01:00
Johannes Schickel
53f9c0d69b SDL: Send EVENT_SCREEN_CHANGED after receiving SDL_VIDEORESIZE when necessary.
This fixes some ugly crashes when resizing the window in OpenGL mode.
2013-10-19 22:17:42 +02:00
Eugene Sandulenko
8098ed9b46 EVENTS: Initialize class variable. CID 1002944 2013-09-22 11:47:37 +03:00
Eugene Sandulenko
f59512c47e RECORDER: Implement Events Recorder 2013-05-17 00:18:09 +03:00
Eugene Sandulenko
ce0a334d30 BACKENDS: Fix unitialized variables in event manager. CID 1002944 2013-04-21 14:51:33 +03:00
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
Matthew Hoops
f35e820e9f Merge remote branch 'upstream/master' into pegasus 2012-09-05 11:45:25 -04:00
Bertrand Augereau
fdc29ee276 OPENPANDORA: The buildbot toolchain doesn't like the ending comma 2012-09-01 18:50:18 +02:00
Matthew Hoops
790a74ab9d Merge remote branch 'upstream/master' into pegasus 2012-08-31 21:58:58 -04:00
Bertrand Augereau
94921846eb OPENPANDORA: New touchscreen mode where the stylus hovers and the DPad left/right/up trigger left/right/middle clicks 2012-08-31 17:38:46 +02:00
Matthew Hoops
bb1e60e8b2 Merge remote branch 'upstream/master' into pegasus
Conflicts:
	AUTHORS
	devtools/credits.pl
	gui/credits.h
2012-08-26 16:12:25 -04:00
David-John Willis
0cf1c220fa GPH: Move the legecy GP2X joystick code into the switch case to make it easier to follow. 2012-07-31 12:09:47 +01:00
Matthew Hoops
ec0b4f7b96 SDL: Allow for the meta key flag to be used 2012-04-09 11:19:25 -04:00
Tarek Soliman
533f80282b KEYMAPPER: Rename EVENT_CUSTOM_BACKEND to EVENT_CUSTOM_BACKEND_ACTION 2012-02-27 13:04:59 -06:00
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
David-John Willis
64b8587507 GPH: Cleanup and some WIP refactoring. 2011-06-11 17:07:08 +01:00
Thierry Crozat
014145f240 I18N: Make some OSD messages translatable 2011-06-06 23:20:11 +01:00
Max Horn
39076ef972 BUILD: Rename UNIX #define to POSIX 2011-05-25 13:23:03 +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
59e77ed667 ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!

Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Max Horn
dbca3045cd WEBOS: Fix compilation 2011-04-29 13:18:42 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Paul Gilbert
aadb4f7459 WEBOS: Moved #include lines inside #ifdef WEBOS to fix MSVC compilation 2011-04-13 20:46:24 +10:00
David-John Willis
15bdb29248 GPH: Add separate button defined buttons for each supported device.
* No default buttons set any more as I would want the build to fails
  if you don't provide the backend with a device.

* Also commit some small cleanup to the bundle files.
2011-04-12 10:44:04 +01: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
David-John Willis
6f1c7cf30a GPH: Change backend to mask backend code to GPH_DEVICE.
* This is mainly to make it easy to drop the old GP2X into the
  same codebase (I really have no desire to manage 2 sets of 99.9%
  identical code ;)).
* Code paths for just one of the supported devices can be runtime
  worked out or just defined for that device.

mount.sh: Fixed some small errors#	../../../../scummvm.gph
2011-04-11 18:22:58 +01:00
David-John Willis
bb6bc31813 GP2X: Mask off the graphics and events code behind a GP2X_OLD define.
* This is a temp thing while I finish up merging the GP2X and GPH code.
  I do not want the GP2X backend code dropped yet until this is complete.
2011-04-11 18:15:14 +01:00
David-John Willis
5661570e4e GP2X: Commit some cleanup/fudges with a view to collapsing into the GPH backend. 2011-04-11 18:00:46 +01:00
David-John Willis
18e35a638d OPENPANDORA: Cleanup header for events. 2011-04-11 18:00:46 +01:00
David-John Willis
b9e4d77ade GPH: Removed some unimplemented and unneeded definitions.
- Thanks to digitall for proving that 2 sets of eyes spot a really simple
   problem much quicker than one set ;).

mount.sh: Fixed some small errors#	../../../../scummvm.gph
2011-03-24 22:43:12 +00:00
David-John Willis
b95013dfe2 OPENPANDORA: Refactor OpenPandora backend and move events and graphics into modular backend style. 2011-03-24 21:24:05 +00:00
David-John Willis
cf8dcf4549 GPH: Cleanup GPH backend and adapt to newer modular backend model. 2011-03-24 21:24:05 +00:00
David-John Willis
973e3e827e GP2X: Remove incorrect GP2XWiz define from the GP2X event code.
* My plan is to move all of the GPH devices into the GPH backend
  but for now this is just a merge mess from the GSoC-OpenGL branch.
2011-03-24 21:24:04 +00:00