Supporting newish input devices

John Kozak jk at xylema.org
Sat Jun 30 23:02:18 UTC 2001


Ned Konz writes:
 > There is already (IIRC) tablet support in Squeak. Look at 
 > JoystickTabletPlugin. I don't know what it's good for, though. (I'm getting a 
 > tablet soon, so I'm interested).

Ta.  Been having a quick look, can't quite fathom what it's supposed
to do...  I've got WinTab, a free SDK from http://www.pointing.com,
which has an example that does the "two pointers" thing I was after.


 > 
 > >  MS Intellimouse.  It's got five buttons; it'd be nice to use them all...
 > >
 > >  windows keyboard.  I'd like to be able to use the windows and menu
 > >   keys - could someone point be at where global key bindings live?  Is
 > >   there a utility that dumps out the keyboard stream (or something like
 > >   emacs' view-lossage)?
 > 
 > There are key bindings all over the place. Most are set in the class side of 
 > ParagraphEditor, though.

Do you know where something like alt-. is defined?  I'd like to be
able to (say) popup the "new morph..." menu anywhere by doing win-m.

 > 
 > Look at EventSensor for the definition of the input events. It looks like you 
 > have extra mouse button bits, and/or can add new keystroke modifiers for 
 > special keys. You'll have to modify the platform-specific bits of your VM to 
 > pass the additional mouse buttons and keystrokes through, first.

Thanks.  I note a few "(buttonState >> 3)"s in the C code...  I'll
want to encode the pressure info somewhere too, and propagate
that into e.g. the sketch morph.  ISTM that I might define a new event
of type EventTypePen in the VM 

John





More information about the Squeak-dev mailing list