Bug#563135: Alternate reduced-press input method for gtetrinet

David Eccles (gringer) hacking at gringer.org
Thu Dec 31 06:36:32 UTC 2009


Package: gtetrinet
Version: 0.7.11
Severity: wishlist
Tags: patch

I would like to be able to use an alternate method for changing rotation and
selecting the drop column for gtetrinet. This would have three actions per drop,
each requiring a single keypress:
1) rotate piece to desired rotation
2) move piece to desired column
3) drop piece

Such an input method reduces the number of keypresses required to put pieces
into the ideal location, making the game a bit faster (although this alternative
method needs a fair amount of training to get used to).

I have attached a patch that does this. There are now 13 new keys that can be
configured:

* Rotate piece 180 degrees
* Move piece 0-5 blocks away from left wall (i.e. 6 keys)
* Move piece 0-5 blocks away from right wall (i.e. 6 keys)

The 180 degrees rotation is implemented as two left rotations, the move away
from walls are implemented as a twelve step shift to the respective wall, then
the required number of movements in the opposite direction, i.e. leftwall4: move
left 12, then right 4. In other words, the new keys are merely macros for
particular key sequences. This means that if there is a tall barrier in the
middle and the piece is going down one side, it can't jump over the barrier
(which should be impossible).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gtetrinet_alternate_input.diff
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20091231/47da271e/attachment.asc>


More information about the pkg-gnome-maintainers mailing list