|
FreeJ scripting | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Controller
|
+--ViMoController
The ViMoController is for this fancy serial Video Mouse device:
I had no specs for hacking this driver. One mouse had a floppy disc in it's package labeled "WinEdit-Version 1.1". I ran that in qemu and sniffed the line. You may ask if this driver supports the IR sensor or the connectors ... mh, WinEdit came up with a popup: "Sorry, this feature is not implemented yet."
Check eBay or your attic!
| Constructor Summary | |
ViMoController(<string> filename)
The ViMoController constructor creates a controller which holds the callbacks. |
|
| Method Summary | |
bool callback
|
button(<int> button, <int> state, <int> mask, <int> old_mask)
This will be called on mouse button up and down. |
void
|
close()
closes device and releases lock. |
int
|
open(<string> filename)
opens device and locks it. |
bool callback
|
wheel_i(<int> direction, <uint> history)
This will be called when turning the inner wheel at a locked position. |
bool callback
|
wheel_o(<int> speed, <int> old_speed)
This will be called when turning the outer wheel. |
| Methods inherited from class Controller |
activate, get_name
|
| Constructor Detail |
ViMoController(<string> filename)
filename - e.g. "/dev/ttyS0". If you set the device filename here, the constructer calls open(filename). You can skip the filename and do open(filename).
| Method Detail |
bool callback button(<int> button, <int> state, <int> mask, <int> old_mask)
button - number value
state - 0=up 1=down
mask - current button bitmask
old_mask - old button bitmask
void close()
int open(<string> filename)
filename - name of the serial device where the mouse is attached
bool callback wheel_i(<int> direction, <uint> history)
direction - -1=left, +1=right
history - bitmapped history, for debugging or whatever. Left oldest, right octet current position. Each octet is one position, range 0 - 3.
bool callback wheel_o(<int> speed, <int> old_speed)
speed - new position range -7 to 7, 0 is the middle. Don't be confused: the wheel seems to have two '0' positions.
old_speed - previous value
|
FreeJ scripting | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
FreeJ scripting documentation is Copyleft (C) 2000 - 2007 dyne.org foundation. Verbatim copying and distribution of this entire page is permitted in any medium, provided this notice is preserved.