Slick Forums

Discuss the Slick 2D Library
It is currently Tue Sep 25, 2018 1:07 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Nov 19, 2006 4:05 pm 
Offline
Oldbie

Joined: Sat Nov 18, 2006 3:11 pm
Posts: 254
Location: Helsinki
KevGlass, could you please integrate it in a future release of Slick ?
Thanks :P


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 6:30 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
New version uploading as I type this include the new event method:

Code:
mouseWheelMoved(int change);


which is fired when the user moves the wheel and reports how much the wheel moved. It's a light wrapper over LWJGL. You can see an example of use in the updated InputTest.

Oh, this is just a quick update - might not be the final look. Seems ok to me though.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 6:45 pm 
Offline
Oldbie

Joined: Sat Nov 18, 2006 3:11 pm
Posts: 254
Location: Helsinki
Thanks , i will try when updloading finished


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 19, 2010 9:09 am 
Offline

Joined: Sat Feb 06, 2010 4:29 pm
Posts: 40
more ideas for this?

I think i wand this in normal input

int steps = input.mouseScrolled();


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 19, 2010 9:49 am 
Offline
Regular

Joined: Mon Feb 23, 2009 11:32 am
Posts: 113
Fnord wrote:
more ideas for this?

I think i wand this in normal input

int steps = input.mouseScrolled();

yeah, but then it is not event based....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 19, 2010 9:56 am 
Offline

Joined: Sat Feb 06, 2010 4:29 pm
Posts: 40
h3ckboy wrote:
Fnord wrote:
more ideas for this?

I think i wand this in normal input

int steps = input.mouseScrolled();

yeah, but then it is not event based....

yes, could be additional


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 19, 2010 2:56 pm 
Offline
Regular

Joined: Mon Feb 23, 2009 11:32 am
Posts: 113
Fnord wrote:
h3ckboy wrote:
Fnord wrote:
more ideas for this?

I think i wand this in normal input

int steps = input.mouseScrolled();

yeah, but then it is not event based....

yes, could be additional


true.. but you dont TRULY need it...

and anyways, what would you base it on? since the previous call? you would be getting the event call anyways, so why not use it :P


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 19, 2010 3:01 pm 
Offline

Joined: Sat Feb 06, 2010 4:29 pm
Posts: 40
yes, base on previous update.
i don't like mix of event & poll


Top
 Profile  
 
PostPosted: Sat Apr 20, 2013 2:38 am 
Offline

Joined: Fri Jul 06, 2012 6:42 am
Posts: 3
Another important idea: how do you know where the mouse is located when the wheel is scrolled??? For example, I'm implementing zoom centered on the pointer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group