Hello Guest

2 mice support in LWJGL? If not, where should I implement it?

  • 4 Replies
  • 9567 Views
Hey guys!

I want to create a game similar to Alien Breed or Crimsonland. And I want to
have 2 players playing on one screen. Aiming will be done with the mouse, movement with keyboard.

I found out that jinput supports multiple mice  (tested with 2 mice on Linux, jinput recognized both correctly,
extra driver needed for win2k,xp; see http://forum.java.sun.com/thread.jspa?threadID=708770&messageID=4104669 for more).

Is this also supported by LWJGL?

thx for any help!
« Last Edit: January 20, 2008, 10:50:06 by Passenger82 »

*

Offline elias

  • *****
  • 899
    • http://oddlabs.com
Re: 2 mice support in LWJGL? If not, where should I implement it?
« Reply #1 on: January 20, 2008, 11:06:18 »
Your best bet is to just use JInput directly. In fact, controller support in lwjgl is implemented through jinput.

 - elias

Re: 2 mice support in LWJGL? If not, where should I implement it?
« Reply #2 on: January 20, 2008, 14:36:40 »
okay, thanks!


I'd like to contribute.
So if you think this could be useful I'd like to integrate it into LWJGL.
Just tell me where you think is a good point to add and what
existing classes it should be based on (if any. else I'll use jinput directly).

busy with exams, right now. I'll probalby start in mid Febuary.


keep up the good work with LWJGL! :)

*

Offline elias

  • *****
  • 899
    • http://oddlabs.com
Re: 2 mice support in LWJGL? If not, where should I implement it?
« Reply #3 on: January 20, 2008, 17:27:46 »
My feeling is that we don't need to support two mice in lwjgl, and that accessing jinput directly is the preferred way.

 - elias

Re: 2 mice support in LWJGL? If not, where should I implement it?
« Reply #4 on: January 21, 2008, 08:22:30 »
okay ^^