Opened 14 years ago

Closed 14 years ago

#14 closed defect (fixed)

The points given by EventMotion and EventKey disagree

Reported by: Ben Lippmeier Owned by:
Priority: high Milestone: 1.2.0.0
Component: Unknown Version: 1.1.1.0
Keywords: Cc:

Description

Thomas DuBuisson? report:

The points given by EventMotion? and EventKey? disagree (using Xorg + XMonad, which forces the window dimensions). If they are actually points from different coordinate systems then preventing their mixing is a perfect use for the type system (along with conversion functions).

Attachments (1)

convertMotionPointBasedOnWindowSize.patch (3.5 KB) - added by Thomas DuBuisson 14 years ago.
Fixed some typos in the old patch. This one actually builds.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by Thomas DuBuisson

If you look at Graphics/Gloss/Internals/Interface/Game?.hs you'll see the function "handle_keyMouse" has point conversions for each action. This conversion needs to be it's own function and used in the "handle_motion" callback as well. Patch attached.

Changed 14 years ago by Thomas DuBuisson

Fixed some typos in the old patch. This one actually builds.

comment:2 Changed 14 years ago by Ben Lippmeier

Priority: normalhigh

comment:3 Changed 14 years ago by Ben Lippmeier

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.