Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
d909af6b62
Added Pointer.reset
2022-10-28 17:50:26 +01:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
f802ac5d8c
The Input.Pointer.event
property can now be a WheelEvent
as well.
2021-05-03 18:15:20 +01:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
aea0e4c925
Pointer.down
will now check if the browser is running under macOS and if the ctrl key was also pressed, if so, it will flag the down event as being a right-click instead of a left-click, as per macOS conventions. Fix #4245
2020-09-22 20:42:38 +01:00
Richard Davey
b63cc75154
Remove Camera.resolution use
2020-09-12 11:55:38 +01:00
Richard Davey
e93d36f38e
The Pointer.getDuration
method now uses the new Pointer downTime
and upTime
values, meaning it will accurately report the duration of when any button is being held down, not just the primary one. Fix #5112
...
* `Pointer.downTime` now stores the event timestamp of when the first button on the input device was pressed down, not just when button 1 was pressed down.
* `Pointer.upTime` now stores the event timestamp of when the final depressed button on the input device was released, not just when button 1 was released.
2020-08-24 17:32:21 +01:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
f872b1ece9
Updated docs
2019-08-07 12:20:17 +01:00
Richard Davey
5dd75b64fc
Pointer.updateWorldPoint
is a new method that takes a Camera and then updates the Pointers worldX
and worldY
values based on the cameras transform
2019-08-07 12:10:50 +01:00
Richard Davey
84522136d0
We can now use the locked
property and don't need to add to the movement values every frame. Fix #4611
2019-07-08 14:59:06 +01:00
Richard Davey
254f3843e5
Added locked
property.
2019-07-08 13:29:39 +01:00
Richard Davey
839e298c4e
Pointer.getDuration
would return a negative / static value on desktop, or NaN on mobile, because the base time wasn't being pulled in from the Input Manager properly. Fix #4612
2019-06-24 10:58:44 +01:00
Richard Davey
8fe4b37a94
JSDoc fix
2019-06-19 15:52:08 +01:00
Richard Davey
0791ae10d2
Added button property and methods for leftButtonReleased, rightButtonReleased and so on.
2019-06-12 11:19:00 +01:00
Richard Davey
9327351e86
Added deltaX, Y, Z and wheel method.
2019-06-05 15:31:25 +01:00
Richard Davey
15654be545
update motion automatically
2019-06-04 18:53:48 +01:00
Richard Davey
7f2feea4ae
All the touch handlers now store the full TouchEvent, not just the Touch List entry
2019-06-04 15:46:16 +01:00
Richard Davey
094541d968
Removed dirty and just
properties as no longer required, also removed reset method
2019-05-28 16:57:08 +01:00
Richard Davey
9a2b8b966d
Use getFrame
2019-05-24 15:28:38 +01:00
Richard Davey
186887c920
Added lastAction property and self-invoke the reset method
2019-05-23 17:18:49 +01:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
fd4f45673b
Pointer.getDuration
would only return zero until the pointer was released, or moved (basically any action that generated a DOM event). It now returns the duration regardless of the DOM events. Fix #4444
2019-04-24 10:08:56 +01:00
Richard Davey
508df48512
Apply buttons check in move handler too.
2019-01-23 23:17:52 +00:00
Richard Davey
67679f58f6
Return actual booleans from button checks and reset buttons to zero correctly.
2019-01-23 23:00:29 +00:00
Richard Davey
8111d8062e
Pointer.up
and Pointer.down
now use a hasOwnProperty
check for the existance of the buttons property on the event, causing it to be set even if equal to zero, which it is when there are no buttons down
2019-01-23 22:34:48 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
9a7058915c
Removed dragState
property.
2019-01-04 16:34:53 +00:00
Richard Davey
5b5b83d269
Added downElement and upElement properties
2018-11-29 13:44:18 +00:00
Richard Davey
524892f095
Fixed angle value and facing direction
2018-11-26 15:42:53 +00:00
Richard Davey
a74616b090
Added getDistanceX and getDistanceY
2018-11-26 15:35:18 +00:00
Richard Davey
41e64b9f53
Added time property, getDistance, getDuration and getAngle.
2018-11-26 13:11:24 +00:00
Richard Davey
b437efa642
Removed un-used function
2018-11-26 11:29:13 +00:00
Richard Davey
f51de18bb2
Updated docs and added quick bail-out clause
2018-11-26 11:27:02 +00:00
Richard Davey
d596fbd8c0
Added distance property.
2018-11-24 13:04:14 +00:00
Richard Davey
f6efccb29a
Added motionFactor property.
2018-11-24 12:52:20 +00:00
Richard Davey
c32a69acaf
Added midPoint and updateMotion calculations
2018-11-24 12:47:19 +00:00
Richard Davey
51a9b3bd4a
Recording positon tests
2018-11-23 19:06:59 +00:00
Richard Davey
1650857878
Removed debug tests
2018-11-23 16:26:49 +00:00
Richard Davey
d6bee1bbd1
Working through event debugging - don't pull this version unless you want logs everywhere!
2018-11-22 17:18:31 +00:00
Richard Davey
7c00bd4dc8
Added Pointer.velocity and Pointer.angle as they're so common for gesture calculations.
2018-11-20 17:03:22 +00:00
Richard Davey
57084cb65e
Added Pointer.smoothFactor
property, and pass new boolean to input manager.
2018-11-19 15:30:42 +00:00
Richard Davey
8db61274f7
Swapping to American-English spelling for consistency
...
~sigh~ it looks so wrong
2018-10-16 15:23:36 +01:00
Richard Davey
7daa8b9d45
Added touchcancel handler and wasCancelled property
2018-10-16 11:42:54 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
a9063604dc
Replace @readOnly with @readonly
2018-10-09 13:40:00 +01:00
Richard Davey
4ba3b37608
Added Pointer.getDistance method
2018-09-12 01:03:56 +01:00
Richard Davey
cced09bad6
Added Pointer.prevPosition and getInterpolatedPosition method
2018-07-11 12:34:00 +01:00
Richard Davey
61c5f76d63
Added transformPointer method which Pointer now uses.
2018-06-04 15:19:11 +01:00