I've got some (PC) peripherals it would be nice to have more support for, and I've started to dig around looking at adding some. I'd appreciate any comments on the feasibility or folly of these:
wacom tablet. By default, this acts as another way to move the mouse cursor, but can be used as a another, independent, pointing device. I'd like to have two separate Hands, the pen one having genie on and the mouse one not.
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)?
thanks,
John
On Saturday 30 June 2001 08:27, John Kozak wrote:
I've got some (PC) peripherals it would be nice to have more support for, and I've started to dig around looking at adding some. I'd appreciate any comments on the feasibility or folly of these:
wacom tablet. By default, this acts as another way to move the mouse cursor, but can be used as a another, independent, pointing device. I'd like to have two separate Hands, the pen one having genie on and the mouse one not.
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).
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.
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.
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
On Sat, 30 Jun 2001, John Kozak wrote:
wacom tablet. By default, this acts as another way to move the mouse cursor, but can be used as a another, independent, pointing device. I'd like to have two separate Hands, the pen one having genie on and the mouse one not.
I had this running, under Linux, in Squeak 2.8:
* Implemented the tablet primitives in TabletJoystickPlugin, see InputSensor>>#primTabletRead: and tablet examples in class Pen which make use of pressure * Implemented a class TabletHandMorph that is controlled by those tablet primitives * Made a subclass of this that actually draws a pen with shadow that is tilted correctly - this looks cool! * Fixed some issues with displaying multiple hands
With this, I have four hands running simultaneously (main pointer, wacom mouse, wacom stylus, wacom erazer). There is no new Eventtype, rather, the TabletHandMorph creates fake mouse events by polling Sensor primTabletRead.
So all you need to do is implement the tablet prims for Windows, then my code should run (maybe with minor changes) in newer images.
-- Bert
squeak-dev@lists.squeakfoundation.org