robinmaypanpan / gamegalaxy

Automatically exported from code.google.com/p/gamegalaxy
0 stars 0 forks source link

UI: Better, more intuitive mouse event handling #122

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Version 0.1 determines that a piece has been dragged if it has moved even
one pixel since being picked up.  Most users are not that precise with a
mouse; if a person "clicks" (presses and then releases) a piece but the
mouse has moved a few pixels, the UI will treat it as an attempt to put
down the piece in the same square.

The "double-bzzt" sound still occurs if the player has a piece in hand as a
result of a forced move and attempts to "click" an illegal destination
square, if the mouse cursor moves any pixels between the press and release
motion.

Also, if a player presses to pick up a piece, holds the mouse in the same
exact place, and then releases after a few seconds, the UI will not attempt
to put down the piece if the mouse cursor has not moved any pixels at all.

Original issue reported on code.google.com by andrea.l...@gmail.com on 28 Dec 2009 at 9:26

GoogleCodeExporter commented 8 years ago

Original comment by andrea.l...@gmail.com on 28 Dec 2009 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by andrea.l...@gmail.com on 6 Jan 2010 at 5:34

GoogleCodeExporter commented 8 years ago

Original comment by andrea.l...@gmail.com on 6 Jan 2010 at 5:40

GoogleCodeExporter commented 8 years ago

Original comment by JoyceM137@gmail.com on 6 Jan 2010 at 5:42