Shell Commands/RocketTool

From MorphOS Library

< Shell Commands

RocketTool - Controls a USB Rocket or Missile Launcher

LEFT/S, RIGHT/S, UP/S, DOWN/S, FIRE/S, TIME/N/K, JOYPORT/N/K, UNIT/N/K

LEFT      - turn the rocket pad to the left for some time.
RIGHT     - turn the rocket pad to the right for some time.
UP        - change the pitch up.
DOWN      - aim lower.
FIRE      - launch one of the three missiles.
TIME      - optionally give the time of the movement in ticks (one tick
            is 1/50sec).
JOYPORT   - instead of giving the direction, connect  controls  to  the
            joystick  or  joypad  at the given port. Of course, you can
            also use a USB joypad for this job. To exit, press Ctrl-C.
UNIT      - if multiple rocket launchers are connected, you can  choose
            the  right  unit  with this argument. Defaults to unit 0 of
            course.

Examples:

RocketTool LEFT TIME 100
RocketTool RIGHT UP 50 FIRE
RocketTool FIRE
RocketTool JOYPORT 1


Note: Only weapons of mass destruction with Vendor ID = 0x1130 and Product ID = 0x0202 are supported.