Dave Leaver
81bf3e6f7f
Correct spelling in INativeWindow
2014-05-08 10:21:27 +12:00
thefiddler
bfaff0bd66
[GL] Added generic RenderbufferStorage depth-stencil formats
...
According to the OpenGL 4.4 specification, RenderbufferStorage accepts
both generic and sized depth-stencil formats (DepthComponent and
DepthStencil). See sections 9.2.4, 9.2.5 and 9.4.
2014-05-07 23:21:24 +02:00
thefiddler
c4fa8dcc44
Merge pull request #111 from thefiddler/sdl_stack_fix
...
[SDL] Fixed a stack corruption issue on win32
2014-05-07 13:24:22 +02:00
thefiddler
e3fd9e1374
[SDL] Avoid CursorVisible = true cursor jump
2014-05-06 09:36:30 +02:00
thefiddler
a270b9328e
[SDL] Report mouse in client coordinates
2014-05-06 09:31:35 +02:00
thefiddler
7e86d349d2
[Examples] Test MouseCursor in GameWindowStates
2014-05-06 09:12:08 +02:00
thefiddler
b1f627893b
[Mac] Fixed PointTo* calculations
...
On HiDPI displays, the client rectangle is using a pixel-based
coordinate system, while the screen is using a point-based coordinate
system. PointToClient/PointToScreen now correctly accounts for that.
2014-05-06 09:03:13 +02:00
thefiddler
cd315a3bd6
[Platform] Forward PointToScreen to backend
2014-05-06 09:02:09 +02:00
thefiddler
637a8bee66
[Platform] More selective mouse events
...
We should not raise mouse events when the cursor state hasn’t changed.
2014-05-06 09:01:23 +02:00
thefiddler
3408523e27
[Examples] Added PointToClient test
2014-05-06 09:00:42 +02:00
thefiddler
52efa3b629
[SDL] Improved documentation of Event size hack
2014-05-05 15:11:01 +02:00
Stefanos A
dffabcb94a
[SDL] Fixed a stack corruption issue on win32
2014-05-05 12:46:48 +02:00
thefiddler
41276361fb
[Mac] Report KeyDown/Up events for modifier flags
2014-05-05 09:14:14 +02:00
thefiddler
2e9ff4d8b9
[Examples] Print KeyboardState
2014-05-05 00:56:19 +02:00
thefiddler
b53d4a6554
[Examples] Test key events for consistency
2014-05-05 00:43:58 +02:00
thefiddler
8b7d5bc7e4
[Input] Implement key repeat
2014-05-05 00:43:45 +02:00
thefiddler
d968281a1b
[OpenTK] Refactor keyboard and mouse handling
...
A lot of duplicated code is now moved to NativeWindowBase and
LegacyInputDriver.
2014-05-04 17:05:08 +02:00
thefiddler
e155d647de
[X11] Added X11KeyMap.TranslateButton()
...
This code was duplicated on four different places before.
2014-05-04 17:04:03 +02:00
thefiddler
28a1849a72
[Mac] Moved MacOSKeys to MacOS namespace
...
They are used by both Carbon and Cocoa, so there is little reason to
keep them in MacOS.Carbon
2014-05-04 17:02:37 +02:00
thefiddler
2d5afcf0e8
[Input] Update state through HandleKey* events
2014-05-04 17:02:00 +02:00
thefiddler
268e8fccde
[Input] Removed pointless unsafe region
2014-05-04 17:01:34 +02:00
thefiddler
1096a8802a
[Input] Removed pointless ValuePrecise setter
2014-05-04 16:58:59 +02:00
thefiddler
7af710f4dd
[Input] Removed pointless MouseDevice.SetState
...
MouseDevice state should only be modified through its HandleMouse*
methods, not directly.
2014-05-04 16:58:24 +02:00
thefiddler
4b115c443b
[Mac] Add horizontal scrolling
2014-05-04 15:24:02 +02:00
thefiddler
30c73e8ead
[OpenTK] Raise NativeWindow.Mouse* events
2014-05-04 15:23:40 +02:00
thefiddler
9dab96c5c1
[Mac] Disable momentum scrolling and key pop-ups
...
We might wish to add an option to re-enable momentum scrolling, as this
might be useful to some applications for a more native feel.
2014-05-04 15:23:24 +02:00
thefiddler
15f5abe1e1
[Platform] Remove lambdas
2014-05-04 08:34:13 +02:00
thefiddler
1457e44309
[Examples] Hook both MouseDevice and Mouse events
...
They should give identical results.
2014-05-04 08:33:51 +02:00
thefiddler
67359a5d90
[Input] MouseDevice is now based on MouseState
...
This way we have a single state representation (MouseState), shared by
all mouse APIs and events.
2014-05-04 08:33:20 +02:00
thefiddler
e093fd23f6
[Mac] Avoid calling into LegacyInputDriver
2014-05-04 08:32:26 +02:00
thefiddler
ff46455e56
[X11] Removed legacy X11Input driver
...
Its functionality has been moved directly into X11GLNative and
X11KeyMap.
2014-05-04 08:32:08 +02:00
thefiddler
39eb3b1892
[Input] Improved MouseState.ToString()
2014-05-04 08:31:11 +02:00
thefiddler
94fdf1881c
[Platform] Improved mouse interface
...
- The complete mouse state is now available in mouse events
- Horizontal wheels are now supported
- MouseState now takes up less memory and has a simpler internal
implementation.
2014-05-04 01:29:55 +02:00
thefiddler
e85377c350
[Platform] Added support for horizontal wheel
2014-05-03 16:47:03 +02:00
thefiddler
842c0499b9
[SDL] Corrected SDL_Mouse* event structs
2014-05-02 17:39:00 +02:00
thefiddler
3e33ac9280
[Platform] Refactored INativeWindow backends
...
All INativeWindow implementations are now derived from
NativeWindowBase. They no longer implement legacy IInputDriver
themselves, but rather rely on LegacyInputDriver provided by
NativeWindowBase for compatibility. They also implement the new Mouse*
events.
2014-05-02 16:52:11 +02:00
thefiddler
674cd54c29
[Mac] Fixed initial window position
...
Cocoa sets the desktop origin at the bottom-left of the main screen,
with +y going up. OpenTK is setting the origin at the top-left of the
main screen, so we need to invert the y-axis.
2014-05-02 15:13:38 +02:00
thefiddler
3824f55f18
[Mac] Fixed cursor coords when CursorVisible=false
2014-05-02 14:21:32 +02:00
thefiddler
89fc36bde1
[Platform] Added INativeWindow.Mouse* events
2014-05-02 14:18:52 +02:00
thefiddler
612652910f
[Platform] Inherit NativeWindowBase
2014-05-02 14:18:40 +02:00
thefiddler
300203f73b
[Mac] Use On* methods from base class
2014-05-02 09:41:27 +02:00
thefiddler
10939fcaec
[OpenTK] Add On* methods to raise events
2014-05-02 09:37:25 +02:00
thefiddler
24b19d2487
[Input] Added internal MouseDevice.Position getter
2014-05-02 09:37:25 +02:00
thefiddler
f2eca2924f
[Mac] Inherit from NativeWindowBase
...
This reduces code duplication significantly.
2014-05-02 09:37:25 +02:00
thefiddler
5ba1bf89f1
[OpenTK] Added NativeWindowBase
...
This acts as a common base class to INativeWindow implementations and
can be used to reduce code duplication.
2014-05-02 09:34:14 +02:00
thefiddler
495ded54d8
[Examples] Use Key.Enter to capture mouse
2014-05-01 23:56:25 +02:00
thefiddler
60f58c2ffd
[Examples] Fixed cursor hotspot
2014-05-01 22:17:06 +02:00
thefiddler
9bd94c1f13
[Examples] Improved MouseCursor example
2014-05-01 17:03:47 +02:00
thefiddler
9ee728d4fc
[Win] Only set MouseCursor in client area
...
This is required according to the windows documentation.
2014-05-01 16:49:23 +02:00
thefiddler
9988a2ba9c
[SDL][Win] Destroy custom cursor on Close()
...
X11 destroys the cursor after setting it and Cocoa uses an autorelease
pool, so that should not be necessary there.
2014-05-01 14:27:20 +02:00