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

Mouse Commands

Next to the keyboard, the mouse is the most popular input device for the PC. Almost any program requires a mouse. Mouse devices come in all shapes, colors, and sizes. However, they all have one thing in common: They move that thing on the screen called the cursor. There are ten different DB commands that control the mouse.

Hiding and Showing the Mouse

The HIDE MOUSE command gets rid of that pesky mouse cursor. The mouse cursor is cute, but sometimes it can be annoying when it follows your mouse. The two most annoying examples I can think of are in a flight-simulator-type game, where the mouse cursor should not be seen, and in a game where you need a custom mouse cursor, such as a targeting game. The command takes no parameters ...

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