wnp.Input.TouchManager
Summary
Manages touch events on mobile devices.
                        All events are listed below along with their parameters. You can register/unregister your own callbacks using the methods on and off.
                        N.B : Use event.clientX or event.pageX to get the positions, depending on the browser you target.
Events :
- touchDown, button : Number
- touchUp
- touchMove
- tap
- dblTap
- longPress
- swipe
- rotate
Constructor
wnp.Input.TouchManager
Syntax
wnp.Input.TouchManager
                                
                                        - 
                                                        domElement
Summary
Parameters:
- 
                                                        domElementHTMLElementThe targeted DOM element. 
Item Index
Methods
Methods
off
Syntax
off
                                            
                                                    - 
                                                                    eventName
Summary
Detaches an event listener from an event type.
Parameters:
- 
                                                                    eventNameStringThe listened event name. 
on
Syntax
on
                                            
                                                    - 
                                                                    eventName
- 
                                                                    callback
Summary
Attaches an event listener to an event type.
setDeadZone
Syntax
setDeadZone
                                            
                                                    - 
                                                                    deadZone
Summary
Sets the dead zone value. This value is used when a finger is moving on the screen. If the delta position is lesser than dead zone then the move event is not triggered.
Parameters:
- 
                                                                    deadZoneNumberThe value of the dead zone. Default is 2.0. 
start
Syntax
start
                                            
                                                    ()
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                              Summary
Starts the manager activity.
stop
Syntax
stop
                                            
                                                    ()
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                              Summary
Stops the manager activity.