Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jan 29, 2020 12:05 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Jul 23, 2012 10:09 am 
Offline
User avatar

Joined: Wed Jun 20, 2012 8:10 pm
Posts: 54
Continuing the post i've made in help/discussion, i'm posting here, since apparently i'm not the only one with the issue...

I'm trying to do a simple drag/drop kind of thing.
I overrided the mouseDragged method, and do the x += newx - oldx;

The problem is, the mouseDragged is actually called several times on the same x;y :

From : 578;235 to 579;236
New location : 321;201
From : 578;235 to 579;236
New location : 322;202
From : 579;236 to 583;237
New location : 326;203
From : 579;236 to 583;237
New location : 330;204
From : 583;237 to 590;237
New location : 337;204
From : 583;237 to 590;237
New location : 344;204
From : 590;237 to 594;238
New location : 348;205
From : 590;237 to 594;238
New location : 352;206
From : 594;238 to 598;238
New location : 356;206

Possibly a bug?
(Note that the workaround is to consume the event, but then again i don't understand why it is fired multiple times in the first place)

_________________
Seventeen


Last edited by Seventeen on Wed Aug 01, 2012 1:34 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Jul 28, 2012 10:13 pm 
Offline
User avatar

Joined: Tue Jul 17, 2012 11:27 am
Posts: 67
I have the same thing on every input.
Even keys.

_________________
Open source isometric engine made with libGDX: http://wurfelengine.net


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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