Web::DOM::TouchEvent
The DOM TouchEvent object
DESCRIPTION
The Web::DOM::TouchEvent class implements the DOM TouchEvent interface.
METHODS
In addition to the methods of the Web::DOM::Event and Web::DOM::UIEvent classes, following methods are available:
$boolean = $ev->alt_key$boolean = $ev->ctrl_key$boolean = $ev->meta_key$boolean = $ev->shift_key-
Return whether the modifier key is pressed or not. [TOUCH]
$touches = $ev->changed_touches-
Return the Web::DOM::TouchList containing the changed touches. [TOUCH]
$touches = $ev->target_touches-
Return the Web::DOM::TouchList containing the target touches. [TOUCH]
$touches = $ev->touches-
Return the Web::DOM::TouchList containing the current touches. [TOUCH]
The new method of the Web::DOM::TouchEvent class accepts the touches,
target_touches,
changed_touches,
alt_key,
meta_key,
ctrl_key,
and shift_key name/value pairs in its second arguments,
in addition to the name/value pairs for Web::DOM::Event and Web::DOM::UIEvent objects. [UIEVENTS]
SPECIFICATIONS
- TOUCH
-
Touch Events
<https://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html>.Following constructor definition MUST be added:
[Constructor(DOMString type, optional TouchEventInit eventInitDict)] partial interface TouchEvent {}; dictionary TouchEventInit : EventInit { TouchList touches; TouchList targetTouches; TouchList changedTouches; boolean altKey; boolean metaKey; boolean ctrlKey; boolean shiftKey; };
SEE ALSO
Web::DOM::Event, Web::DOM::UIEvent, Web::DOM::Touch, Web::DOM::TouchList.
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.