Good morning,
I have some questions regarding the InputGestures class.
I want to include the possibility of using a touchscreen in my application. So I had a look into the InputGestures class and the samples in Delta.InputSystem.Tests.
1.) When I try out the AllGestures() unit test and drag the mouse, dragging is immediately recognized (the green circle appears), although the if clause checks
Code:if (Input.GetState(InputButton.GestureDrag) == InputState.Released)
Would have expected that it would only be recognized when I release the mouse button or take my finger of the touchscreen.
2.) IsHorizontalDrag and IsVerticalDrag don't seem to work. I never see a green circle :( Or can't these events be activated with a mouse?
3.) Multitouch - with more than 2 fingers - isn't possible right now? Or didn't I stumble over it, yet?
4.) How would I best implement something like this:
Code:
// move camera right, if mouse/touch drag at least 0.1f in x direction
if (Input.Gestures.IsDrag && ((Input.Mouse.DragStartPosition.X +0.1f) < Input.Mouse.Position.X))
The code works, but I feel as if there is a much nicer version, which I can't seem to figure out.

Edited by user Tuesday, January 17, 2012 2:26:36 PM(UTC)
| Reason: Not specified