9.0 Alpha

Discuss new features and breaking changes.

9.0 Alpha

Postby valyard » Thu Nov 03, 2016 5:09 am

Hello guys,
This is a preview release of upcoming changes.
This release has a lot of changed APIs, so upgrading from a previous version might be hard.

Please try it out with your use cases.
If no significant regressions are found, I'm going to publish it.

https://github.com/TouchScript/TouchScr ... /9.0alpha1

Minimum supported Unity version: 5.3.6

- Added: StandardLayer which replaces UI, 3D and 2D layers.
- Added: Proper Unity UI support, see Photos example.
- Added: Scroll wheel support.
- Added: Pointer.Buttons to be able to detect which buttons of the controller are pressed and released.
- Added: Pointer.GetOverData() which returns TouchHit for whatever is under the pointer.
- Added: Pointer.Flags (right now FLAG_ARTIFICIAL and FLAG_RETURNED are implemented).
- Added: OverHelper component for handling hover/out events.
- Added: You can now turn off emulated mouse in mouse input.
- Added: Smoothing to Transformer.
- Added: Exit on ESC and automated adding scenes to Build Settings for examples.
- Changed: Windows 7/8/10 touch handling is moved to a C++ plugin, fixing crashes on quit.
- Removed: UIGesture, UICameraLayer, UIOverlayLayer, CameraLayer, CameraLayer2D. Use StandardLayer instead.
- Removed: MouseInput and MobileInput, use StandardInput instead.
- Removed: Tags.

- Fixed: Layer list on TouchManager not updating in play mode.
- Fixed: Using nonalloc API for CameraLayer and CameraLayer2D functionality in StandardInput.
- Fixed: Defines for 5.4+.
- Fixed: All pointers now are reset even if no points were updated.
- Fixed: TouchScriptInputModule and EventSystem initialization order.
- Fixed: Windows input not initializing if Unity window was in background while starting the app.

- Renamed: *touch* to *pointer* in the whole code base.
- Added: 4 types of pointers: Touch, Mouse, Pen, Object.
- Added: Idle state to gestures which is active until gesture started recognizing the sequence (at this point it goes to Possible).
- Changed: Now instead of Began, Moved, Ended, Cancelled pointer events there are Added, Pressed, Updated, Released, Removed and Cancelled events to work with hovering pointers like mouse.
- Removed: ITouchManager.GetHitTarget API. This functionality is replaced by IPointer.GetOverData, PointerUtils.IsPointerOnTarget.

- Added: IPointer interface. LayerDelegate, TouchLayer, HitTest accept IPointer instead of Pointer.
- Added: PressedPointers and PressedPointersCount since (Active)Pointers now contain hovering pointers and need to be differentiated from pressed pointers.
- Added: Pools to mouse and pen handlers since when cancelled and returned touches must be different. I.e mouse has a pool of 1 object.
- Added: Pointer.CopyFrom.
- Added: Pointers are now created with a reference to the input source they belong to.
- Added: ITransformGesture.TransformMask with set flags for what actually changed.
- Changed: MouseHandler, TouchHandler, Win*TouchHandler now have CoordinatesRemapper property and do remapping themselves via the remapper passed from StandardInput.
- Changed: All *PointerDelegate to PointerDelegate: addPointer, updatePointer and others now accept just a Pointer object. All input sources must update relevant touch parameters themselves before calling updatePointer.
- Changed: Touch/Mouse/Windows handlers are now IInputSource and manage their pointers themselves.
- Changed: ObjectPool now requires a function which creates elements.
- Changed: Transform gestures namespace and hierarchy.
- Moved: Pointer class to Pointers namespace.
- Moved: Pointer Target, Hit, Layer to TouchHit structure obtainable through GetPressData().
- Moved: Pointer cache logic to inputs.
- Merged: ObjectHitResult and LayerHitResult into HitResult.
- Renamed: ActivePointers to Pointers, NumberOfPointers to PointersCount.
- Renamed: TouchHit.Transform to Target.
- Renamed: Gesture.ScreenPositionHitData to GetScreenPositionHitData().
- Renamed: TouchHit.PointerHitType to HitType.
- Renamed: TouchHit to HitData.
- Renamed: Gesture.ScreenPosition to ScreenPositionHit.
- Renamed: Clusters to Clusters2D.
- Renamed: TouchScript.Debug namespace to TouchScript.DebugUtils.
- Removed: Gesture.GetTargetHitResult, added Gesture.ScreenPositionHit property.
- Removed: HitResult.Error.
- Removed: One overload of ITouchManager.GetHitTarget.
- Removed: ITransformGesture.ApplyTransform, Transformer component now applies changes itself.
Site Admin
Posts: 439
Joined: Mon Sep 08, 2014 11:57 pm

Re: 9.0 Alpha

Postby valyard » Fri Dec 09, 2016 12:57 am

9.0 ALPHA 2
https://github.com/TouchScript/TouchScr ... /9.0alpha2

- Added: Settings window with links to docs and define checkboxes.
- Added: EditorResources to handle editor-only images.
- Added: Unity Events support.
- Added: New editor interface for components.
- Changed: Mouse fake pointer is now created right when ALT+PRESS happens and not the next frame after ALT+RELEASE. The former method was triggering unnecessary taps and was interfering with other gestures.
- Changed: By default StandardLayer now raycasts everything.
- Changed: Transformer.smoothingFactor max to 100000.
- Removed: WebPlayer from the code base.

- Fixed: the dependency on VC++ redistributable in Windows builds.
- Fixed: An issue with multi-finger gestures failing.
- Fixed: Visualization of multiple fingers.
- Fixed: TapGesture erroneously triggering because of a redispatched touch from 2+ point gestures.
- Fixed: layer initialization order. Giving one more frame before we create a StandardLayer if no layers present.
Site Admin
Posts: 439
Joined: Mon Sep 08, 2014 11:57 pm

Return to Alpha Test

Who is online

Users browsing this forum: No registered users and 1 guest