Michael Pfaff
4f7fee2ed4
Remove a lot of synchronization
2022-08-14 13:21:03 -04:00
Erik Broes
129d0711c5
Modifiers now report the correct side they are pressed. Added 'fn'-key as modifier.
2012-11-29 18:27:08 +01:00
Erik Broes
9d4f22034c
Allow the use of F16-F19, SECTION, INSERT, HOME, END, DELETE, NUMPADENTER, CLEAR, LMETA keys.
2012-11-27 19:29:26 +01:00
Erik Broes
ee69763707
Don't resolve a key to a deprecated name.
2012-11-27 19:28:49 +01:00
Ioannis Tsakpinis
c58a34ee2e
Changed keyName array size to match KEYBOARD_SIZE.
2012-09-10 07:51:13 +00:00
kappa1
ea5f8518ee
fix minor typo in javadoc/comments
2010-12-15 18:48:56 +00:00
Ioannis Tsakpinis
a8bcb7fd25
Ported codebase to Java 1.5.
...
Misc OpenCL fixes and API improvements.
Changed fractal demo to use events/sync objects instead of cl/glFinish for synchronization. (untested)
2010-09-28 21:11:35 +00:00
Brian Matzon
bb16ec7492
updated and added license where needed
2008-04-07 18:36:09 +00:00
Elias Naur
65309d759c
Added notes to Mouse.poll() and Keyboard.poll() that Display.processMessages() (or Display.update()) must be called to receive new input state
2008-03-02 18:16:39 +00:00
Elias Naur
31669b02ec
javdoc fixes
2008-01-21 22:15:12 +00:00
Brian Matzon
21b2cc0c21
cleaning imports
2007-10-20 21:31:52 +00:00
Elias Naur
3d81b7715d
Added KEY_LMETA and KEY_RMETA to Keyboard to replace the windows centric KEY_LWIN and KEY_RWIN, which are now deprecated
2007-08-28 08:02:24 +00:00
Elias Naur
8f2da1dea5
Removed unnecessary (and deadlock prone) synchronized modifiers from methods in Keyboard and Mouse
2007-05-30 20:33:40 +00:00
Elias Naur
fc759e6192
Implemented Keyboard.enableRepeatEvents(), Keyboard.areRepeatEventsEnabled() and Keyboard.isEventRepeat() to control repeat event reporting. Added repeat key test to KeyboardTest
2007-05-13 22:01:48 +00:00
Elias Naur
56178d97fd
Make the rest of LWJGL thread safe. No attempt have been done to make the locking minimal. Instead, one global lock is shared by Display, Mouse, Keyboard and Cursor. The lock surrounds all public methods.
2007-02-12 12:18:26 +00:00
Elias Naur
2577827e4a
Synchronize Keyboard and Mouse to avoid problems with AWTInputAdapter based usage
2006-11-24 10:18:36 +00:00
Elias Naur
70e3294b7b
Restore old Mouse.create/Keyboard.create behavior which is to ignore create() when already created.
2006-11-16 12:29:52 +00:00
Elias Naur
d396992cc5
Fixed potential NPE from Cursor.getCapabilities()
2006-10-27 06:27:58 +00:00
Elias Naur
3674d843c2
Added org.lwjgl.opengl.AWTInputAdapter which enabled use of Mouse and
...
Keyboard with AWTGLCanvases. Programs can now avoid implementing AWT input processing and access the mouse grabbing features from both Display and AWTGLCanvas. See org.lwjgl.test.opengl.awt.AWTInputAdapterTest for an example.
Note: This commit is the linux and generic AWT imlementation and can still
change a lot while implementing windows and mac os x.
2006-10-26 20:19:40 +00:00
Elias Naur
ec9b449b78
Made Display.getImplementation package private, and made the input.* packages access it through reflection.
2006-10-08 09:05:16 +00:00
Elias Naur
4e68c787b3
Added Keyboard.getEventNanoseconds() and Mouse.getEventNanoseconds()
2006-07-04 17:07:13 +00:00
Elias Naur
26c6de6363
Implemented variable sized events in preparation of timestamped input events
2006-07-03 23:16:26 +00:00
Elias Naur
3902c69c7a
Now that no native side event_queue_t type is used anymore, convert input read() semantics to use normal nio Buffer semantics - that is, move the position when writing events
2006-07-03 19:09:47 +00:00
Elias Naur
18721df832
Reverted the widening of Keyboard.getEventCharacter
2006-06-30 23:05:28 +00:00
Elias Naur
13d345abce
Widened Keyboard.getEventCharacter() return type from char to int to accomodate 32 bit characters.
2006-06-26 14:13:57 +00:00
Elias Naur
6cf49718db
Windows: LWJGL didn't work well with jinput, but compatibility could be greatly improved if LWJGL used DirectInput 8 (like jinput). This can't be done unconditionally, since we need the DX3 support for older versions of windows. So, I've moved most Mouse and Keyboard stuff from native to java side and generalized DirectInput access through an abstract base class, with two concrete subclasses, one for dx3 and one for dx8.
2006-06-26 13:50:48 +00:00
Elias Naur
9f41ecaedb
Removed Keyboard.isStateKeySet() - it is easily replaced by Toolkit.getLockingKeyState()
2006-06-10 20:42:26 +00:00
Brian Matzon
8a3bee6b1c
applied patch to move ID tag
2006-03-23 19:32:21 +00:00
Elias Naur
137cad2394
Properly reset Keyboard on destroy()
2005-05-05 10:16:46 +00:00
Caspian Rychlik-Prince
200ed3792a
Cleanup of unused imports
2005-05-04 20:59:44 +00:00
Caspian Rychlik-Prince
4747c4878b
Clean state after destroy
2005-05-04 20:38:29 +00:00
Brian Matzon
2c5a862c99
add comment on keyboard layout/key
2005-02-07 18:45:25 +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
69bc20f3f5
Removed enableBuffer() and enableTranslation() from the public API.
2005-01-10 08:19:28 +00:00
Ioannis Tsakpinis
3041c0494d
Code cleanup
2004-11-25 22:20:45 +00:00
Elias Naur
1ec70842d0
Mac OS X port, second try :)
2004-11-11 16:03:19 +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
72afa14aa3
Converted *.allocateDirect to BufferUtils
2004-07-29 11:41:11 +00:00
Brian Matzon
c4a3500cf5
removed javadoc referenced to read
2004-07-17 09:38:20 +00:00
Caspian Rychlik-Prince
6b7695e0f9
*** empty log message ***
2004-07-03 13:13:54 +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
Brian Matzon
4cea3e191b
header unification
2004-06-12 20:28:34 +00:00
Elias Naur
4974a66398
Folded read into poll to simplify interface
2004-04-07 07:55:42 +00:00
Elias Naur
8065870592
Removed Keyboard.initIDs
2004-04-07 07:48:37 +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
Caspian Rychlik-Prince
3df3d2d401
Simplification work
2004-03-26 11:26:04 +00:00
Caspian Rychlik-Prince
fca57cefd5
Simplification work
2004-03-26 11:09:39 +00:00
Brian Matzon
dbb0ac6e98
removed not needed NPE check
2004-03-10 20:54:37 +00:00
Brian Matzon
a2aedd996b
updated javadoc
2004-02-12 07:10:06 +00:00
Brian Matzon
3cdd9516f3
assertion on Window.isCreated
2004-02-05 16:33:31 +00:00
Brian Matzon
9adc719a08
getCharacter -> getEventCharacter
2004-02-05 16:23:04 +00:00
Brian Matzon
a3d1eaf94f
using getters
2004-02-04 20:44:07 +00:00
Elias Naur
963605989f
Implemented mouse button buffering
2003-10-11 16:29:40 +00:00
Elias Naur
dd72b04c90
boolean results -> Exceptions
2003-09-30 10:52:05 +00:00
Caspian Rychlik-Prince
14f38f43e5
Lazy initialization.
2003-09-10 22:39:26 +00:00
Brian Matzon
f27e5a294c
fix: isStateKeySet now returning int
2003-08-23 09:45:22 +00:00
Elias Naur
16ea129071
*** empty log message ***
2003-08-19 19:35:22 +00:00
Brian Matzon
61305f4107
added isStateKeySet for checking LOCK keys
2003-08-19 15:15:00 +00:00
Caspian Rychlik-Prince
711c157ce6
Added button names and consistent query methods to the buttons, to map between names and indexes and back again
2003-08-17 16:32:53 +00:00
Caspian Rychlik-Prince
c94edfb609
*** empty log message ***
2003-08-17 16:31:07 +00:00
Elias Naur
315375dee5
Ported OpenGL to Buffers
2003-06-24 12:24:55 +00:00
Caspian Rychlik-Prince
e143541c01
*** empty log message ***
2003-06-07 12:47:35 +00:00
Brian Matzon
b7a151c48b
back to 1.19 - silly me
2003-05-08 21:27:12 +00:00
Brian Matzon
900fc0e8fe
new test, based on MouseTest
2003-05-08 21:23:02 +00:00
Caspian Rychlik-Prince
99588933cf
Added some isCreated() methods to input classes and keyboard key name mapping
2003-04-07 15:21:09 +00:00
Caspian Rychlik-Prince
4924c564d5
*** empty log message ***
2003-03-28 19:02:24 +00:00
Caspian Rychlik-Prince
24bfb0cf00
New Window class, and major changes to Display
2003-03-27 22:54:41 +00:00
Elias Naur
1b3d0278f9
Added keyboard translation to linux and win32
2003-01-11 23:09:38 +00:00
Brian Matzon
951a036ae3
Lightweight actually spelled right!
2002-12-21 12:37:20 +00:00
Elias Naur
c13797bae2
Added keycode mapping for enter and tab in Keyboard.java
2002-11-25 15:32:13 +00:00
Elias Naur
963237b3fc
Removed PRINTSCREEN, PAGEUP and PAGEDOWN again - need to remap instead
2002-11-24 19:35:00 +00:00
Elias Naur
5c896d3b7d
Added Keyboard.KEY_PRINTSCREEN
2002-11-24 14:35:56 +00:00
Elias Naur
72a598e943
Added Keyboard.KEY_PAGEUP Keyboard.KEY_PAGEDOWN
2002-11-24 12:01:24 +00:00
Caspian Rychlik-Prince
9e58e87ce9
Fixed various bugs
2002-09-06 23:58:33 +00:00
Caspian Rychlik-Prince
c6659f88a4
Stuff
2002-08-28 21:58:14 +00:00
Caspian Rychlik-Prince
a5615938c9
Minor adjustments to Javadoc comments
2002-08-20 14:55:29 +00:00
Caspian Rychlik-Prince
72fedde744
Encapsulated LIBRARY_NAME
2002-08-19 14:01:23 +00:00
Caspian Rychlik-Prince
9752430e66
Copyright added
2002-08-15 16:19:01 +00:00
Caspian Rychlik-Prince
630362c462
Added GamePad and Joystick and some query methods
2002-08-14 14:31:09 +00:00
Caspian Rychlik-Prince
6fe3e3188e
StructBuffer added. Numerous changes to timing code in Sys.
2002-08-11 11:36:18 +00:00
Caspian Rychlik-Prince
1b741fdfc5
Added GLU and GLUT, and core GL commands
2002-08-09 18:50:58 +00:00
Caspian Rychlik-Prince
fec4678286
First code import.
2002-08-09 10:56:30 +00:00