Article # 353, added by Geoworks, historical record
| first | previous | index | next | last |

Using the fire buttons on the Zoomer.



Q. How can I  use the Zoomer's fire buttons (and presumably the joystick
   button) in my application?

A. Look at section "Controls" in the Zoomer portion of the
   documentation. It includes the following:

   Input from the buttons acts as "keyboard" input, using a custom set of
   "keys."

   These keyboard input events will have a character whose top byte has the
   value CS_CONTROL and whose bottom byte has one of the following VChar
   ( "virtual character" ) values:

   VC_JOYSTICK_135  VC_JOYSTICK_90  VC_JOYSTICK_45
   VC_JOYSTICK_180  _______________  VC_JOYSTICK_0
   VC_JOYSTICK_225  VC_JOYSTICK_270  VC_JOYSTICK_315

   VC_FIRE_BUTTON_1  VC_FIRE_BUTTON_2

   The VC_JOYSTICK values correspond to the Zoomer directional keys. Note
   that the Zoomer has just four directional buttons-the 45, 135, 225, and
   315 degree values will be passed when the user is pressing two buttons
   at once. The VC_FIRE_BUTTON values correspond to the two zoomer fire
   buttons.