Would it make sense to have a generic interaction event view? Perhaps one for simple events, like onmousemove, and one for opposite pairs, like onmousedown/onmouseup. Then Mouse.Position would be an example of Input.Event<int * int>, which takes the event handler as an argument, and Mouse.LeftPressed would be an example of Input.Toggle, which would take two event handlers as arguments, and would always be a bool. Something like that. Then I can easily define my own interaction events. Or you can define them all for me - that's fine too.

By on 9/5/2015 12:26 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper