Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Newbie Question : LWJGL Mouse Support  (Read 2295 times)
0 Members and 1 Guest are viewing this topic.
Offline nech_neb

Junior Member




Java for LIFE !!!


« Posted 2003-06-18 04:14:19 »

Hi all,

I've just started playing around with LWJGL...
and I was wondering if the experts here can point
me to the right direction on mouse support...

As far as I can tell.... There are none.

Also, all of the LWJGL example code I've found
are for LWJGL 0.5 Is there some tutorials which
support LWJGL 0.6??

Thanks for you time


Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2003-06-18 04:42:14 »

Quote
As far as I can tell.... There are none.

It's not that the mouse is hidden!
take a look at org.lwjgl.input.Mouse
and then org.lwjgl.test.input.MouseTest

this should get you started

Quote
Also, all of the LWJGL example code I've found
are for LWJGL 0.5 Is there some tutorials which
support LWJGL 0.6??

The example code in the source drop should "work" fine. However the tutorial on site does not.
Most of the documentation issues will be fixed for the 0.7 release, while 0.8 will include even more documentation, tutorials and articles. Stay tuned.

Offline elias

Senior Member





« Reply #2 - Posted 2003-06-18 06:56:04 »

And if you miss a visible native cursor, you will like version 0.7.

- elias

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline nech_neb

Junior Member




Java for LIFE !!!


« Reply #3 - Posted 2003-06-18 18:17:48 »

Hmm....
Correct me if I'm wrong.
But the input.Mouse object just returns the
offset of the current click and the last click....

Also, it lacks any mouse over support.
and ya.... having a cursor would sure be nice ^__^

Is there a ETA on next version??
Is there gonna be a huge framework change like
the one from 0.5 to 0.6 ??

I'm reluctent to get too commited to LWJGL due to
the fear that they're gonna make huge changes to
design from version to version.

Also, is there a way to embbed the LWJGL canvas
to a java windowed component? That way I can
manally take care of the mouse movement and clicks?

Thanks for the replys

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #4 - Posted 2003-06-18 18:34:38 »

The whole idea behind the mouse is that you create one yourself - you decide where it should be and how to interprate the mouse movement offsets. Then depending on what you need, you can draw your own cursor if needed - the mouse test examples do exactly this, by keeping track of the mouse position and drawing a shape at the current location.

Not sure what you mean by mouse over support, but it sounds like you're missing the point of the API - to provide a low level, console like interface, not to intergrate with every known windowing toolkit. If you really need a windowing toolkit, either write your own or use the newly made avalible Jogl - I'm trying to experiment with Jogl at the moment, but the early version seems very rough around the edges.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #5 - Posted 2003-06-18 18:44:06 »

Quote
Is there a ETA on next version??
Is there gonna be a huge framework change like
the one from 0.5 to 0.6 ??

No ETA, but "soon" - we're working on it right now.

Quote

I'm reluctent to get too commited to LWJGL due to  
the fear that they're gonna make huge changes to  
design from version to version.

We WILL make changes untill we reach 1.0, thats just how it's going to be. That said, the refactoring is pretty limited, and usually of the boring mindnumbing type Grin

We refactor stuff from time to time (again, untill we get to 1.0) to make it a lean mean gaming machine Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (22 views)
2014-09-19 03:14:18

Dwinin (35 views)
2014-09-12 09:08:26

Norakomi (62 views)
2014-09-10 13:57:51

TehJavaDev (88 views)
2014-09-10 06:39:09

Tekkerue (43 views)
2014-09-09 02:24:56

mitcheeb (65 views)
2014-09-08 06:06:29

BurntPizza (47 views)
2014-09-07 01:13:42

Longarmx (35 views)
2014-09-07 01:12:14

Longarmx (40 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!