ringrose@fibula.ai.mit.edu (Robert Ringrose) (04/30/91)
How can I check for a combination of, say, shift and a mouse button? (alt and/or control would be nice, too) Checking for an individual mouse button is easy: getbutton(LEFTMOUSE) Checking for a normal keyboard event is about as easy. Unfortunately, shift, control, and alt aren't quite normal keyboard events. Ideas? Thanks in advance, - Robert Ringrose ringrose@ai.mit.edu "There's always one more bu6."
ringrose@fibula.ai.mit.edu (Robert Ringrose) (04/30/91)
I asked about detecting shift-click, control-click, or alt-click.... By the way, this is on a Personal Iris - however, it'd be nice to have something as portable as possible. - Robert Ringrose ringrose@ai.mit.edu "There's always one more bu6"
ringrose@fibula.ai.mit.edu (Robert Ringrose) (05/01/91)
Problem solved. It turns out that, although in the manual it states that the keyboard is a special device which "reports an event only on a downstroke, taking into account the <ctrl> and <shift> keys", you can still read the status of the control, shift, and alt keys as buttons. The catch is that you can still read them as buttons - they are defined in device.h, so apparently (my) manual only gives a partial listing of the defined buttons. You can't check for shift-click as a single, queue-able event, but this is close enough for what I need to do. - Robert (Thanks to Andrew Myers and Lee Campbell for pointing me in the right direction) "There's always one more bu6."