Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Question About Mouselistener, Specifically getX() and getY()
beeseven
post Jul 13 2005, 12:14 AM
Post #1


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



I have to do this program for summer school computer science (I didn't fail- my school requires a few extra credits so some people take classes over the summer instead of forfeiting electives), and I finished it early, so I wanted to make it cooler. It's a ball that bounces around the screen and touches another little ball, which then moves to somewhere else. A bunch of people were messing with theirs, seeing how many points they could get, making cheats, etc., so I wanted to add something that moves the ball to a place clicked.

Anyway, to the problem: It works pretty well, except the farther I click from (0,0), the less accurate it becomes. Like if I click at (400,400), it'd appear around (395,375).

Is there any way to make it more accurate? Or would I have to write some complex thing that adjusts for it?
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Jul 13 2005, 12:46 AM
Post #2


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,489
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



QUOTE(beeseven @ Jul 12 2005, 08:14 PM)
Is there any way to make it more accurate? Or would I have to write some complex thing that adjusts for it?
*


Sounds like it's more technical that I expected. What I can comment on this is that sometimes it's all in the hardware. When you purchase a mouse (any type, ball or inverted) the good ones will have sensitivity ratings. For example, my Kensington TurboBall has 160dpi sensitive rating where as my Wacom tablet has 600dpi.

Using my Kensington mouse I can do just about any device pointing job. But with my Wacom tablet I can edit any high resolution photo as though I was creating from a scratch. I can notice that when I use Kensinton mouse I cannot quiet pin-point certain pixel area to color or edit. Perhaps the mouse that is attached to the computer isn't as sensitive as it should be.
Go to the top of the page
 
+Quote Post
beeseven
post Jul 13 2005, 01:30 AM
Post #3


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Hmm, that would make sense- this mouse really sucks.

Randomly while I'm playing games the buttons click themselves and sometimes the pointer just goes crazy.

I'll try at school tomorrow and see what happens.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How Should I Create A Mask On An Existing Render?(2)
  2. Confused With Mousemotion Listener And Mouselistener(5)
  3. Using The Image Editing Functions Of Php(4)
  4. Pondering Modern Music(10)


 



- Lo-Fi Version Time is now: 11th October 2008 - 08:32 PM