Johannes Schickel
afd4b82a8a
IPHONE: Make includes match our style.
2016-01-07 12:44:48 +01:00
Johannes Schickel
c6a2d86be7
IPHONE: Scale input according to content scale factor.
...
This hopefully fixes input positions in retina devices. The idea is stolen
from QT: https://qt.gitorious.org/qt/qt/source/0726127285413829f58618b5b82fb3e2da0c3a74:src/plugins/platforms/uikit/quikitwindow.mm#L261-296
Complicated way to retrieve scale's return value properly is taken from:
https://stackoverflow.com/questions/3130464 We sadly can't use the cleaner
solution since we don't want to require a newer SDK...
2014-06-05 04:42:57 +02:00
Johannes Schickel
2f87b338d8
IPHOME: Make GPL headers consistent in themselves.
2014-02-18 02:39:35 +01:00
Johannes Schickel
b886bc0a41
IPHONE: Use InternalEvent directly.
2012-04-02 00:03:28 +02:00
Johannes Schickel
a92c54454f
IPHONE: Move event fetching implementation to iPhoneView.
2012-04-02 00:03:28 +02:00
Johannes Schickel
6626258e0f
IPHONE: Protect access to the event list via a mutex.
2012-04-02 00:03:28 +02:00
Johannes Schickel
d27d8cec83
IPHONE: Use Common::List to store the event queue.
2012-04-02 00:03:28 +02:00
Johannes Schickel
323899d70b
IPOHNE: Move touch related global variables to iPhoneView.
2012-03-05 20:46:45 +01:00
Johannes Schickel
3b1e4b5bdc
IPHONE: Let hi-color games directly draw onto the screen texture buffer.
...
This avoids an unecessary copying step from the framebuffer to the texture
buffer.
2012-02-26 01:25:18 +01:00
Johannes Schickel
c3b52343dc
IPHONE: Only update on screen mouse coordinates when it's needed.
2012-02-24 01:44:17 +01:00
Johannes Schickel
5c55866068
IPHONE: Cleanup mouse cursor handling slightly.
...
Now the scaling etc. will be precalculated instead of being done on every
frame.
2012-02-24 01:33:37 +01:00
Johannes Schickel
d691ef2260
IPHONE: Clean up mouse texture coordinate handling.
2012-02-24 01:13:44 +01:00
Johannes Schickel
d93e1558fc
IPHONE: Move some global variables to iPhoneView.
2012-02-24 01:02:29 +01:00
Johannes Schickel
5ae958bcf3
IPHONE: Let iPhoneView and OSystem_IPHONE share the same VideoContext.
...
This allows for better sharing between the current video state in the view and
the OSystem implementation.
This also gets rid of most C interface functions for calling ObjC code.
2012-02-23 03:18:00 +01:00
Johannes Schickel
e1edb20fed
IPHONE: Move VideoContext definition to iphone_common.h.
2012-02-23 02:04:40 +01:00
Johannes Schickel
174127c1dd
IPHONE: Remove some more dead code.
2012-02-23 01:19:34 +01:00
Johannes Schickel
f4579aab9b
IPHONE: Create a struct for shared video context variables.
2012-02-23 01:08:47 +01:00
Johannes Schickel
0e182a9587
IPHONE: Use #include instead of #import.
2012-02-22 02:47:16 +01:00
Johannes Schickel
1b26346fc8
IPHONE: Implement setShakeOffset.
...
This should fix bug #3374656 "IPHONE: setShakePos not implemented".
2012-02-22 01:53:20 +01:00
Johannes Schickel
80b3439817
IPHONE: Rewrite video screen rotation.
...
Now it should be a little bit more sane. Formerly the width and height
was swapped in rotation mode, which resulted in the x coordinate falling
into the range 0..height in landscape mode for example.
This also fixes the cursor offset in the modern theme.
2012-02-21 18:54:26 +01:00
Johannes Schickel
cf44d49d19
IPHONE: Precalculate vertex/tex coordinates for game screen/overlay.
2012-02-20 19:43:51 +01:00
Johannes Schickel
87fb115def
IPHONE: Rename _backing[Width,Height] to _renderBuffer[Width,Height].
2012-02-20 18:39:57 +01:00
Johannes Schickel
d4c167414d
IPHONE: Refactor event code a bit.
...
Now mouse x/y coordinates are passed as int.
2012-02-20 18:39:57 +01:00
Johannes Schickel
76be031ed4
IPHONE: Remove some unused variables.
2012-02-20 15:37:23 +01:00
Johannes Schickel
d77253fbe5
IPHONE: Add support for unfiltered upscaling.
2012-02-20 02:32:10 +01:00
Johannes Schickel
6a31dadfea
IPHONE: Use include instead of import for all of our headers.
2012-02-19 22:10:08 +01:00
Johannes Schickel
13358c541d
IPHONE: Add include guards.
2012-02-19 21:44:37 +01:00
Johannes Schickel
3d0316ccd2
IPHONE: Formatting fixes.
2012-02-19 21:30:53 +01:00
Oystein Eftevaag
1d3be279fc
IPHONE: Fixed a COMI crash and some minor gfx glitches
2011-06-05 00:03:15 -04:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Oystein Eftevaag
ab01f42a4b
IPHONE: The overlay will now always be in the native device resolution
...
svn-id: r52939
2010-09-29 00:19:13 +00:00
Oystein Eftevaag
90649938d2
We'll now default to non-touchpad mode on the iPad
...
svn-id: r49403
2010-06-03 03:22:10 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Oystein Eftevaag
8b813f02b8
Converted the iPhone backend to use OpenGL ES instead of CoreSurface for graphics output
...
svn-id: r40403
2009-05-09 22:25:28 +00:00
Oystein Eftevaag
650749d401
Compatibility fixes for the official iPhone SDK
...
svn-id: r38280
2009-02-15 19:09:59 +00:00
Oystein Eftevaag
5b86801553
Merged revisions 36329, 38212, 38226and 38234 from branch-0-13-0 to trunk: iPhone backend updates
...
svn-id: r38240
2009-02-15 13:58:15 +00:00
Oystein Eftevaag
5ca78661b1
The iPhone backend is now (mostly) up to speed again, and works for firmware 2.0
...
svn-id: r33326
2008-07-27 10:15:57 +00:00
Oystein Eftevaag
fe8faf4f19
(forward-port) Quick swipes across the screen now triggers arrow key events. Also, some mouse cursor fixes for landscape mode
...
svn-id: r30134
2008-01-02 00:07:16 +00:00
Oystein Eftevaag
ece4ee3360
Suspend ScummVM when the button is hit (or a call is received), putting it in a sleep loop until it's resumed
...
svn-id: r29633
2007-11-25 09:37:15 +00:00
Oystein Eftevaag
1d5392d56f
Now always sending a mouse-moved event before a click (some engines don't update the mouse position on click events, it seems). Also added a workaround for an event not always being received when the secondary finger is lifted from the touchscreen.
...
svn-id: r29629
2007-11-24 21:45:39 +00:00
Oystein Eftevaag
6a4ce78789
Implemented soft keyboard support, and added a workarond for engines that can't handle mouse-down and mouse-up events coming in two subsequent calls to pollEvent()
...
svn-id: r29557
2007-11-18 17:58:53 +00:00
Oystein Eftevaag
dbbce1985a
Implemented portrait mode, fixed a few issues with the dirty rects handling, fixed some cursor positioning issues, and redirecting stdout and stderr to a log file when ScummVM is launched from the Springboard
...
svn-id: r29541
2007-11-17 21:26:03 +00:00
Oystein Eftevaag
05b5a493f8
Initial commit of the iPhone/iPod Touch backend
...
svn-id: r29488
2007-11-13 08:06:15 +00:00