added support for non-button touch pads for MM game engine
authorHolger Schemel <info@artsoft.org>
Mon, 2 Apr 2018 10:33:11 +0000 (12:33 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 2 Apr 2018 10:33:11 +0000 (12:33 +0200)
commitfd045bdb92ad7e3523ba850c13a7ef6533d0e726
treea6abb005f8c6181789b47a9ebd1cb8ec143caf99
parentf0c9ece87ae8b4c00974d1d5c11a2147147a1d08
added support for non-button touch pads for MM game engine

There are some systems with touch pads (like Mac notebooks) which do not
have separate left/right buttons, which are required for controlling the
Mirror Magic game engine (which usually works best with left/right mouse
buttons).

This change adds support for recognizing touch clicks on the left and
right half of the touch pad as left and right button clicks to rotate
mirrors and other rotatable game elements in the MM game engine to the
left or to the right.
src/events.c
src/game.c
src/libgame/system.h