Version 0.03 (early prototype)
It’s an attempt to turn keyboard into a touchpad. It might not turn out to function exactly the same way, but should provide similar benefits (the ability to control a mouse pointer in a quick and precise way) with an additional one of not moving your hands off the keyboard.
Dependencies
1.Linux OS (OSX version planned) 2.libxtst-dev
Running
1. Cd into project directory 2. bundle install 3. rspec spec (compiles everything and runs tests) 4. ruby ./bin/touchkey.rb
Press Super key (a.k.a. windows key) and any letter/number key.
-
Super+L => exit
-
Super+Space => mouseclick (left button)
-
Crating ruby extensions in C: www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-under-5-minutes-100.html
-
Simple C program for manipulating pointer position in Linux: www.isv.uu.se/~ziemann/xevent/
-
Introduction to ruby intperpreter’s C internals: rhg.rubyforge.org/chapter02.html
-
Another introduction to ruby’s C-side: people.apache.org/~rooneg/talks/ruby-extensions/ruby-extensions.html
-
Another approach: www.topology.org/linux/xcursor.html