Opened 17 years ago

Closed 17 years ago

#3462 closed defect (fixed)

BS1: Mouse coords not being updated on button down events

Reported by: vinterstum Owned by: fingolfin
Priority: normal Component: Engine: Sword1
Version: Keywords:
Cc: Game: Broken Sword 1

Description

I noticed this while working on the iPhone port.

Basically, if an EVENT_LBUTTONDOWN event is returned from pollEvent(), the click will register as having happened at the coordinates of the last EVENT_MOUSEMOVE event instead of the LBUTTONDOWN event.

As a workaround I always force a MOUSEMOVE event before any LBUTTONDOWN event, but it shouldn't be necessary IMO (and any other touchscreen backend would have to implement the same workaround).

I believe someone mentioned BS2 has the same issue, but I haven't verified that myself.

Ticket imported from: #1838880. Ticket imported from: bugs/3462.

Change History (4)

comment:1 by fingolfin, 17 years ago

At least in current SVN, BS2 uses the EventManager to poll the mouse coords, so this issue should not be present there.

I also made some corrections to BS1 recently, which hopefully fixed this issue. Can you confirm?

comment:2 by fingolfin, 17 years ago

Owner: set to fingolfin

comment:3 by vinterstum, 17 years ago

Resolution: fixed
Status: newclosed

comment:4 by vinterstum, 17 years ago

Confirmed, seems fixed now. Thanks!

Note: See TracTickets for help on using tickets.