O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining Control Devices

Before you move on to the final capabilities of the joystick, you will need to take a side trip. This trip takes you down the path of control devices. Some computers have more than one control device, which can be just about any human input device. Some examples are joysticks, head-mounted trackers, and driving wheels. The next set of commands tells DB which one of those control devices to use and sets the default control devices.

Getting a List of Joysticks

The PERFORM CHECKLIST FOR CONTROL DEVICES command will fill up the checklist information with all the available control devices. Each device gets its own space within the checklist. The name of the device is returned in CHECKLIST STRING$(). If the device supports ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required