Skip to content

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

Notes

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally