Added alternative finger tracking method. Still prefer IPHONE_TOUCH_EFFICIENT_DANGEROUS.
This commit is contained in:
parent
22a37911dd
commit
987edb15b3
10 changed files with 122 additions and 13 deletions
|
@ -13,8 +13,7 @@
|
|||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Sam Lantinga
|
||||
slouken@libsdl.org
|
||||
|
@ -24,10 +23,8 @@
|
|||
#include "SDL_stdinc.h"
|
||||
#include "SDL_events.h"
|
||||
|
||||
#if SDL_IPHONE_MULTIPLE_MICE
|
||||
#ifndef IPHONE_TOUCH_EFFICIENT_DANGEROUS
|
||||
#define MAX_SIMULTANEOUS_TOUCHES 5
|
||||
#else
|
||||
#define MAX_SIMULTANEOUS_TOUCHES 1
|
||||
#endif
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
|
@ -39,6 +36,9 @@
|
|||
|
||||
#if FIXED_MULTITOUCH
|
||||
int touchId;
|
||||
#ifndef IPHONE_TOUCH_EFFICIENT_DANGEROUS
|
||||
UITouch *finger[MAX_SIMULTANEOUS_TOUCHES];
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if SDL_IPHONE_KEYBOARD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue