Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On making complexer scenarios #4

Open
nfroidure opened this issue Oct 17, 2013 · 0 comments
Open

On making complexer scenarios #4

nfroidure opened this issue Oct 17, 2013 · 0 comments

Comments

@nfroidure
Copy link
Member

Now we've got some actions enabled, i'd like to talk about how to manage complexer scenarios and how to design the API for that purpose.

Here are some ideas i have in mind:

  • tactile:
var finger1 = tactile.session();
var finger2 = tactile.session();
finger1.hit(element);
finger2.hit(element).move(element).moveTo(x, y).release();
finger1.release();
  • pointers:
var pointer1 = pointers.session();
var pointer2 = pointers.session();
pointer1.hit(element);
pointer2.hit(element).move(element).moveTo(x, y).release();
pointer1.release();
  • keyboard:
keyboard.hit(element, {'keyCode':58})
keyboard.hit(element, {'keyCode':78});
// here we should repeat keydown events
// dunno what is the exact behavior to mimic currently
keyboard.release(0);
keyboard.release(1);
  • mouse:
mouse.hit(element, {'button':0})
mouse.hit(element, {'button':1});
mouse.release();
mouse.release();

Let me know what you think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant