As I understand, Cerupcat is working a new mouse driver… but I just wanted to bounce this idea off everyone to see if its even a decent idea.
I know the basics of c++ and c#, and have studied the touchlib a bit… and from what I understand touchlib detects and sends the blob data to other programs.
There has been a lot of talk about gestures, standardizing them ect. but a main problem I see with all of our setups so far is that the multitouch is only really useful in our custom programs…
My solution… Still in the idea stage.
Create a program X that runs in the background and recieves the messages from touchlib. Just as the mouse driver does.
This program X would then load a config XML file… this XML file would tell the progam X which custom gestures (or standard gestures) do what in each program.
Program X would then perform a loop
Get the Current Window.
Determine which gesture was made.
See if the gesture and the program match up.
if they do…
Send a custom window message to the program.
Some C# ideas on how to perform these tasks
To get the current window:
GetForegroundWindow();
To send the Messages to the window… although can’t C# messages be sent as an event?
SendMessage();
The advantage to doing this would be to use multitouch gestures in everyday programs like Mozilla… its almost as thes gestures act as hotkeys.
Feedback on this idea is appreciated..
