-
Notifications
You must be signed in to change notification settings - Fork 29
PKUI.CORE.translateWindowsEvents
kerrishotts edited this page Nov 14, 2012
·
1 revision
(part of PKUI.CORE)
Return Type: string
Parameters: theEvent ( string )
Translates touch events to mouse events for Windows Phone devices. It will only do so if the current device identifies as a Windows Phone, and if the event being passed in is a touch event.
The translation matrix is as follows:
touchStart ==> mouseDown
touchMove ==> mouseMove
touchEnd ==> mouseUp
Example:
var theTranslatedEvent = PKUI.CORE.translateWindowsEvents ("touchStart");
// becomes mouseDown on WP
- Since the event name is the only thing translated, any event handling code that relies on touches should also be sure to check for mouse positions as well.
- Generally not called directly, but used by PKUI.CORE.addTouchListener and PKUI.CORE.removeTouchListener.
0.1 Introduced
0.2 Docs Valid