Commit graph

84 commits

Author SHA1 Message Date
Fraser Waters e855d2eb33 [Input] Legacy keyboard respects the KeyRepeat field.
If the legacy keyboard device receives a key down event with IsRepeat set it
will only raise it's own key down event if it's KeyRepeat field is set to true.

This is as documented, regression casused by refactoring. Fixes issue #201.

Also change the GameWindowState example to show setting of KeyRepeat to true
and false and how that changes the event counts for the legacy and new keyboard
devices.
2014-11-23 14:40:36 +01:00
thefiddler d739085cca Fixed compilation warnings on Mono 3.4.0 2014-07-21 17:52:17 +02:00
thefiddler 7a064c382a [Examples] Fixed all warnings 2014-07-21 17:20:19 +02:00
thefiddler b1a31c08cc [Examples] Only use WinForms when supported. 2014-07-18 09:44:47 +02:00
thefiddler 2b16a641f0 [Examples] Improved Mouse.GetState output 2014-05-12 02:20:53 +02:00
thefiddler b89c920f32 [Examples] Test Mouse.SetPosition 2014-05-12 02:20:52 +02:00
thefiddler f4a3cab0e0 [Input] Added Mouse.GetCursorPos() (WIP) 2014-05-12 02:20:52 +02:00
thefiddler 0e48ad30d0 [Examples] Fixed Scroll.X/Y misreporting
Scroll.X and Y are no longer swapped.
2014-05-10 01:52:06 +02:00
thefiddler 7e86d349d2 [Examples] Test MouseCursor in GameWindowStates 2014-05-06 09:12:08 +02:00
thefiddler 3408523e27 [Examples] Added PointToClient test 2014-05-06 09:00:42 +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 1457e44309 [Examples] Hook both MouseDevice and Mouse events
They should give identical results.
2014-05-04 08:33:51 +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 66e78ad3f6 [Examples] Improved ExternalContext test
Also added documentation
2014-04-25 12:14:27 +02:00
thefiddler 985aca3752 [Examples] Test mouse input under heavy load 2014-04-01 09:49:56 +02:00
Fraser Waters 54f1e575d0 Fix compile warnings in Examples.
This commit fixes every current warning in the Example code bar two.
Both due to the use of the OpenTK.GameWindow.Joysticks.
2014-02-25 10:31:17 +00:00
thefiddler d985362058 [Examples] Display modifier key information 2014-02-25 01:13:46 +01:00
Stefanos A. 8cb3538767 [Examples] Move UTF8 sample to Test folder 2014-01-16 14:37:27 +01:00
Stefanos A. 7b98255626 [Examples] Improved timing display
GameWindowStates will now display the average fps and draw three moving
boxes based on different timing methods.

If the timing implementation in OpenTK is working correctly, all three
boxes should be moving at the same speed.
2014-01-14 13:27:09 +01:00
Stefanos A. a961fb3db3 [Examples] Added keys to modify timing
Use [ and ] to decrease and increase the UpdateFrame frequency.
Use < and > to decrease and increase the RenderFrame frequency.
2014-01-07 22:09:52 +01:00
thefiddler 251f5717ae [Examples] Improve timing information; add vsync toggle 2014-01-07 09:12:35 +01:00
thefiddler c5dcc8a93b [Examples] Calculate timing information in GameWindowStates 2014-01-07 01:01:00 +01:00
thefiddler d49dacb5b3 [Examples] Cleaned up input device printing in GameWindowStates 2014-01-07 00:48:09 +01:00
thefiddler fc81f30251 [Examples] Draw device index for Joysticks and GamePads 2014-01-05 21:32:24 +01:00
thefiddler 3a63496b6d Merge branch 'gamepad' into develop
Conflicts:
	Source/OpenTK/OpenTK.csproj
2014-01-03 02:23:02 +01:00
thefiddler 3bad2eefdc [Examples] Added ExternalContext test
This test uses SDL2 to create a window and an OpenGL context. It then
uses OpenTK to render into the external SDL2 context. If everything is
working correctly, a black window should appear and gradually turn
white before disappearing.
2013-12-28 01:17:56 +01:00
Stefanos A d33d0c7387 Added state output for OpenTK.Input.Joystick 2013-12-24 17:18:05 +01:00
Stefanos A f459647613 Removed all instances of refresh_text 2013-12-24 17:18:03 +01:00
Stefanos A ea3c9ffe85 Refresh text continuously 2013-12-24 17:18:03 +01:00
Stefanos A 0c9a67da41 Fixed rendering of joysticks and gamepads
Joysticks and gamepad states would overlap, causing some lines to be
unreadable. This is now fixed.
2013-12-24 17:18:02 +01:00
Stefanos A 18f99c2f63 Added state information for GamePads 2013-12-24 17:18:00 +01:00
Stefanos A. 4aa2eae2e5 Display renderer information 2013-12-21 22:41:10 +01:00
Stefanos A. 32a5e0fc50 Add test for new text input events 2013-11-22 18:25:30 +01:00
Stefanos A. 873f8fb6eb Cleaned up test code committed by mistake. 2013-11-11 11:44:21 +01:00
Stefanos A. a12b394607 Load ES30 and OpenGL4 entry points 2013-11-08 10:39:08 +01:00
Stefanos A. 7d74c37d2a Added usage example for new xml specs 2013-11-07 17:18:12 +01:00
thefiddler 8dcb8601a2 Normalized line endings
Hopefully this is the first and last time we have to do this.
2013-10-11 01:58:54 +02:00
Stefanos A 1434f0d3e9 Display joystick information 2013-10-04 02:37:05 +02:00
Stefanos A. b3ce99a086 Increased the text surface size
This is necessary for high-dpi monitors which render text at double
resolution.
2013-09-27 22:59:56 +02:00
Andy Korth 0f64af130a Committing artfunkel patch for scan codes 2013-01-24 15:48:01 -06:00
Andy Korth 6500e176df A bit of cleanup on the Vector ToStrings 2013-01-08 12:04:21 -06:00
Andy Korth 4230c6b4f0 Added Robmaister's Matrix3 implementations 2013-01-03 10:41:56 -06:00
Andy Korth 5a6f5a870e Test for basic mouse input 2013-01-03 10:07:50 -06:00
Andy Korth d029a73c68 Test for mouseUp event firing when mouse is outside of the window 2012-12-21 21:22:55 -06:00
Andy Korth c98d9e4503 Supress printing of some keyboard non-errors. 2012-12-21 18:43:19 -06:00
Andy Korth 39c3f3f543 Replication project for Mac OS mouse input issue, and fix. OpenTK issues 3242 and 2800 2012-12-21 17:11:39 -06:00
Andy Korth 3c609872fe New test for Basic Mouse Input. Does not work on Mac. 2012-12-21 15:22:37 -06:00
the_fiddler 7569345e0a Use new DisplayDevice.GetDisplay() interface instead of obsolete AvailableDisplays. 2011-12-15 11:30:39 +00:00