photonstorm
db113b58da
Exposed the camera responsible for the input event.
2017-07-28 18:22:57 +01:00
photonstorm
c8a1dc32cc
Updated drag event.
2017-07-28 18:00:04 +01:00
photonstorm
486e80f0a9
Added Camera.setRotation method for chaining.
2017-07-28 17:59:50 +01:00
photonstorm
a4b197b71d
Added Camera.setZoom method for chaining.
2017-07-28 17:53:19 +01:00
photonstorm
38171795f5
Maximum FPS rate removed from TimeStep. When the delta resets it now resets to zero. Target FPS used as limiter during recovery from browser raf idle period.
2017-07-28 15:53:28 +01:00
photonstorm
9e10fca98d
Added Touch support. Doesn't handle multi-touch yet, but single touch works perfectly with all current input tests.
2017-07-28 03:28:10 +01:00
photonstorm
7cc5a61d50
Zone now uses x/y as center for drop zone shapes.
2017-07-28 02:22:41 +01:00
photonstorm
e20d4b1156
Now possible to clear interactive objects.
2017-07-28 01:17:18 +01:00
photonstorm
d2f08f0818
Added 'dropped' property to the DragEnd event.
2017-07-28 00:46:37 +01:00
photonstorm
a2d1f86079
Added DragEnter, DragOver and DragLeave events for drop zones.
2017-07-28 00:29:22 +01:00
Felipe Alfonso
1c5da095f6
Fixed text rendering state leakage on webgl
2017-07-27 15:26:12 -04:00
photonstorm
98f75599a5
Added Drop Event and handler for it.
2017-07-27 18:24:04 +01:00
photonstorm
b71972fac5
Reverted dragX/Y calc.
2017-07-27 17:56:48 +01:00
photonstorm
228ca47274
Updating drag values.
2017-07-27 17:40:22 +01:00
photonstorm
c152156da2
Zone now working again and useful for interactive hit areas not bound to Sprites or other GOs.
2017-07-27 17:40:15 +01:00
photonstorm
8e8d43dcf1
Added setName method.
2017-07-27 17:39:46 +01:00
photonstorm
80aa157a11
Falls back to GO width / height if no frame.
2017-07-27 17:38:31 +01:00
photonstorm
d5ed070fe6
Added missing reference in onDrag.
2017-07-27 14:33:03 +01:00
photonstorm
d6abc26ba7
Fixed bug in FloatBetween.
2017-07-27 14:32:47 +01:00
photonstorm
619caae3c3
Added new drag callbacks to allowed types list.
2017-07-27 14:23:41 +01:00
photonstorm
5fb219a800
GameObjects that cannot render are not considered for input.
2017-07-27 14:23:30 +01:00
photonstorm
bd2e25e791
Swapped back to using non-class IO.
2017-07-27 14:23:14 +01:00
photonstorm
a1dc398a8e
Added callback hooks and removed duplicated vars.
2017-07-27 14:22:58 +01:00
photonstorm
68270e7eee
Swapped back from being a class to just being an object. No need for class overhead here.
2017-07-27 14:22:44 +01:00
photonstorm
b2713fa017
Added GameObject.willRender method.
2017-07-27 14:22:05 +01:00
Antriel
08c54df892
Unified usage of "framerate" into "frameRate".
2017-07-27 09:22:52 +02:00
Richard Davey
a8a642bc29
Fixed assignments
2017-07-27 03:59:45 +01:00
Richard Davey
5cc32c4804
Fixed splice bug.
2017-07-27 03:50:21 +01:00
Richard Davey
795fa5f5cb
Merging in the draggable input handler
2017-07-27 03:40:58 +01:00
Richard Davey
848ba127ab
Exposed the alpha corner values and implemented into the Sprite Batch.
2017-07-25 22:28:02 +01:00
Richard Davey
aac61e5b57
Removed button property from event, get it from the Pointer instead
2017-07-25 12:34:06 +01:00
Richard Davey
f918942cfc
Pointer has methods that expose the state of the buttons
2017-07-25 12:33:53 +01:00
Richard Davey
87edd6cb94
Added option to disable context menu
...
Added to both the game config and as a function in the Mouse Manager.
2017-07-25 12:33:37 +01:00
Richard Davey
1b4e53d06f
Exposed buttons event property.
2017-07-25 04:53:23 +01:00
Richard Davey
e17118c1aa
Tidying up after refactor.
...
Everything working properly and faster than before. Swapped InteractiveObject for a class to help internal optimisation.
2017-07-25 04:10:50 +01:00
Richard Davey
320a0b893d
Preparing to normalize game object data
2017-07-25 02:47:26 +01:00
Richard Davey
466b0b11ca
Fixed argument
2017-07-24 23:54:28 +01:00
Richard Davey
4c2df65cff
Large refactoring of the Input Manager
...
Split events out into Game Object and global Pointer ones. Removed redundant topOnly checks (as the source array is already filtered), removing use of 'childOn' functions. Normalizing event data.
2017-07-24 23:47:55 +01:00
photonstorm
68cc76802d
Updated the shutdown method.
2017-07-24 17:10:30 +01:00
photonstorm
f81856a75c
Updated drag handlers.
2017-07-24 14:10:42 +01:00
photonstorm
102fa3e5d1
Movement event now checks draggable.
2017-07-24 14:10:32 +01:00
photonstorm
46ece8bb80
Exposed child methods for testing.
2017-07-24 14:10:22 +01:00
photonstorm
81445246dd
Updated structure.
2017-07-24 14:09:57 +01:00
photonstorm
063a28cd33
Updated to new Bitmap Text object structure.
2017-07-24 14:09:44 +01:00
photonstorm
91a0b41f90
Up handler goes through draggable list.
2017-07-24 14:09:20 +01:00
photonstorm
812ea7d50b
Changed draggable to pointer array.
2017-07-24 14:09:04 +01:00
photonstorm
d068f8decb
Added new GetInteractiveObject method.
2017-07-24 14:08:48 +01:00
photonstorm
48389491f3
Added missing var.
2017-07-24 14:08:32 +01:00
photonstorm
ba7e04ff77
Callback result determines processing.
2017-07-24 14:08:26 +01:00
photonstorm
0ec5320e8d
Removed align argument.
2017-07-24 14:08:13 +01:00