Commit graph

82 commits

Author SHA1 Message Date
Elias Naur
2cd1e740ee Removed cached width and height from Mouse 2005-04-28 11:57:38 +00:00
Elias Naur
8ae988494b Remove unused code 2005-04-28 10:52:03 +00:00
Elias Naur
a32da7e226 Fon't reset the cursor position in resetMouse() 2005-04-28 10:36:51 +00:00
Elias Naur
038d929180 Allow setCursorPosition when mouse is grabbed 2005-04-28 10:31:32 +00:00
Elias Naur
0b9d221f9c Fix cursor jumping after Mouse.setGrabbed() 2005-04-28 09:57:45 +00:00
Elias Naur
5fe3157227 *** empty log message *** 2005-04-12 11:56:59 +00:00
Elias Naur
61ddd625df Added Mouse.setCursorPosition(x, y) 2005-04-12 11:45:06 +00:00
Elias Naur
0e6c9aa0cd Added LWJGLUtil.getPlatform to encapsulate platform detection. Added FreeBSD as an alias to Linux. 2005-04-09 17:35:37 +00:00
Brian Matzon
ad8d7676c2 moved Sys.log to LWJGLUtils and renamed property to org.lwjgl.util.Debug 2005-03-29 18:09:33 +00:00
Elias Naur
f4180a214d Cleaned up Mouse and Keyboard now that buffering and translation are always enabled 2005-01-18 16:42:31 +00:00
Elias Naur
fbcd19698b Moved Mouse.getNativeCursorCaps() to Cursor.getCapabilities()
Renamed Pbuffer.getPbufferCaps() to Pbuffer.getCapabilities()
2005-01-18 12:34:36 +00:00
Elias Naur
69bc20f3f5 Removed enableBuffer() and enableTranslation() from the public API. 2005-01-10 08:19:28 +00:00
Brian Matzon
5a01a1313a simple optimization 2004-12-07 21:50:30 +00:00
Ioannis Tsakpinis
3041c0494d Code cleanup 2004-11-25 22:20:45 +00:00
Elias Naur
9741a99c64 Make read() and poll() return absolute coordinates when the mouse is not grabbed 2004-11-12 15:01:29 +00:00
Elias Naur
742559fe20 Don't set native cursor if not supported by the platform 2004-11-03 13:49:08 +00:00
Elias Naur
ddd61963ee Split out native implementation of Display/Mouse/Keyboard into implementers of DisplayImplementation 2004-11-02 12:48:58 +00:00
Elias Naur
fa1713c4e8 Add delta values to Mouse events 2004-09-22 11:08:21 +00:00
Elias Naur
466faf572f Add missing initialized check to Mouse.java 2004-07-27 17:08:48 +00:00
Elias Naur
bdf5a43d5e Converted Cursor and Pbuffer handles to ByteBuffers 2004-07-25 14:28:50 +00:00
Brian Matzon
c4a3500cf5 removed javadoc referenced to read 2004-07-17 09:38:20 +00:00
Elias Naur
b121cd0fc7 Don't actually center cursor on setGrabbed(true) 2004-07-15 15:53:16 +00:00
Elias Naur
b07143f400 Made the mouse grab and native cursor properties persistent over destroy()/create() 2004-07-05 14:06:40 +00:00
Elias Naur
84110e9c13 Linux part:
Merged Window and Display into org.lwjgl.Display
Added support for persistent context. This will enable LWJGL games
to avoid recreating the context resources like textures and display
lists when switching between windowed and fullscreen and/or context
dimensions.

Added PixelFormat class instead of individual parameters to Display.create
and Pbuffer constructor.
2004-07-02 19:02:00 +00:00
Caspian Rychlik-Prince
370831cada *** empty log message *** 2004-06-14 19:03:33 +00:00
Caspian Rychlik-Prince
43139c9ea9 New stuff for sensitivity adjustment, scrolling, and adjustable dimensions 2004-06-14 19:00:33 +00:00
Brian Matzon
4cea3e191b header unification 2004-06-12 20:28:34 +00:00
Caspian Rychlik-Prince
f75bb436c9 Tiny javadoc adjustment 2004-05-26 22:53:40 +00:00
Caspian Rychlik-Prince
d137610528 *** empty log message *** 2004-05-25 15:19:16 +00:00
Caspian Rychlik-Prince
b697fb3ecf Removed Sys.setTime(), Sys.getPlatform()
Changed Sys.getTime()
Added Display.sync()
2004-05-05 14:28:40 +00:00
Brian Matzon
a9506354ee fixed mouse issues, setGrabbed & native cursor now works (afaik ;)) 2004-04-12 14:46:18 +00:00
Elias Naur
6f1f14facb Reverted the relative coordinate 'bug' - that's the required behaviour when Window.update is calling Mouse.poll. Consider the case where we call Window.update twice before checking getD*: with the old behaviour, only the deltas between the updates are reported, not those before the first update 2004-04-12 07:13:36 +00:00
Brian Matzon
86eb042b81 reworked animated native cursors, to use X animation when required
added initial setGrabbed(boolean) feature - Work in progress
both needs verification on linux
2004-04-12 00:33:01 +00:00
Brian Matzon
438e790987 fixed relative coordinate bug 2004-04-11 16:03:40 +00:00
Elias Naur
4974a66398 Folded read into poll to simplify interface 2004-04-07 07:55:42 +00:00
Elias Naur
bf8cce9b59 Make poll deltas accumulative, and only reset on getD* 2004-04-06 14:23:19 +00:00
Brian Matzon
70e36d8058 center mouse as cursor is 2004-04-03 18:18:25 +00:00
Elias Naur
9d55bbb302 Renamed LWJGLErrorException to LWJGLException 2004-03-27 15:05:24 +00:00
Elias Naur
63b33930b1 Added LWJGLErrorException to replace the too general Exception 2004-03-27 14:42:47 +00:00
Elias Naur
b98677fb47 All classes use Sys.initialize now 2004-03-27 13:48:58 +00:00
Elias Naur
c093f3ace1 Replaced asserts with proper runtime exceptions 2004-03-27 11:55:07 +00:00
Brian Matzon
afb8491cfa fixed tests according to new way
cleaned up imports
2004-03-26 21:57:57 +00:00
Elias Naur
0a576f8e33 Save unread buffered input events between read()s 2004-03-26 21:11:20 +00:00
Elias Naur
f996e36d6c set native cursor to null at Mouse.destroy() 2004-03-26 16:18:27 +00:00
Caspian Rychlik-Prince
fca57cefd5 Simplification work 2004-03-26 11:09:39 +00:00
Brian Matzon
bb51e3dc23 Cursor animation support regardless of platform features 2004-03-21 21:54:57 +00:00
Brian Matzon
55544a36f3 doh, clamping to width instead of height 2004-03-05 06:23:54 +00:00
Brian Matzon
a2aedd996b updated javadoc 2004-02-12 07:10:06 +00:00
Brian Matzon
bbf0f46226 updated javadoc 2004-02-12 07:00:16 +00:00
Caspian Rychlik-Prince
11b2fc05e3 The BIG LWJGL REFACTORING 2004-02-08 20:41:00 +00:00