Mouse coordinates incorrect

Started by Qudus, May 07, 2009, 17:33:03

Previous topic - Next topic

Qudus

hi

I found a bug in the input API. The mouse y coordinate is incorrectly read. If you click into the opengl window at the topmost line ( y-resolution - 1 ) is read on Windows and ( y-resolution - 3 ) is read on Linux (KDE 3.5). If you click on the bottom most line, 3 is read on Linux, while this value is correct (0) on Windows.

The x-coordinate seems to be correct.

Marvin

Qudus

I this bug being invested? I just want to know, if I am ignored.

Marvin

Matzon

fwiw, I dont have a proper linux setup - especially not KDE - its not ignored by me, its just that linux users are probably more relevant in fixing/investigating this issue ...

ryanm

Just had a check here on KDE 4.2 and everything works as expected. Y-value ranges from 0 to height-1.

Ciardhubh

I just checked on Ubuntu 8.04 (Gnome not KDE) and it works as expected, i.e. Y ranges from 0 to resolution - 1. We are talking about Mouse.getY(), are we?

Qudus

I was talking about getEventY() IIRC.

Quote from: Matzon on May 11, 2009, 17:50:33
its not ignored by me, its just that linux users are probably more relevant in fixing/investigating this issue ...

Then it would have been nice, if you would have just told me about that. But thanks anyway for your reply.

Marvin

Ciardhubh

Quote from: Qudus on May 11, 2009, 20:35:54
I was talking about getEventY() IIRC.

Just tried that too and it also returns the same correct results for me (Ubuntu/Gnome). I tried 1280*960 and 800*600 with up to date Nvidia drivers.

Qudus

I used 800x600 Windowed mode (decorated) on a 1680x1200 desktop. I use up to date ATI drivers (as far as the OpenSuSE updater provides updates from the ATI repository).

Looks like this is a problem on my system only.

Marvin

Ciardhubh

Quote from: Qudus on May 12, 2009, 01:36:42
... on a 1680x1200 desktop. I use up to date ATI drivers ...

ATIIIIIIIIIIIIII! *twitch*

Anyway, maybe your mouse driver resolution isn't high enough to hit the last few pixels on such a high resolution desktop?

Did you poll all events with Mouse.next()? Maybe you are reading the previous event?

The only unexpected behaviour I found was, if I chose a resolution equal to or greater than my desktop in windowed mode, it automatically scales the OpenGL surface to fit the window on screen.

Qudus

Quote from: Ciardhubh on May 12, 2009, 07:23:32
ATIIIIIIIIIIIIII! *twitch*

Yes. ATI is cool :).

Quote from: Ciardhubh on May 12, 2009, 07:23:32
Anyway, maybe your mouse driver resolution isn't high enough to hit the last few pixels on such a high resolution desktop?

I never thought about that. Maybe possible. I will see, if I can try a better mouse.

Quote from: Ciardhubh on May 12, 2009, 07:23:32
Did you poll all events with Mouse.next()? Maybe you are reading the previous event?

Yes. Here is my code:
http://jagatoo.svn.sourceforge.net/viewvc/jagatoo/trunk/src/org/jagatoo/input/impl/lwjgl/LWJGLMouse.java?view=markup

Marvin