INPUT COMMAND SET

There are many forms of input data your game can receive in addition to keyboard input. Force-feedback joysticks, mice, joypads, head trackers and 3D gloves all supply input data that you may wish to support, not to mention file system support to scan for files.

Click on any commands for more information:

STANDARD COMMANDS

INPUT will accept input data from the keyboard
HIDE MOUSE will hide the default mouse pointer image
SHOW MOUSE will show the default mouse pointer image
POSITION MOUSE will reposition the mouse pointer

GAME DEVICE COMMANDS

PERFORM CHECKLIST FOR CONTROL DEVICES will make a list of all devices
SET CONTROL DEVICE will select a known device for use as the current device
FORCE UP will force the joystick up if the device is force feedback
FORCE DOWN will force the joystick down if the device is force feedback
FORCE LEFT will force the joystick left if the device is force feedback
FORCE RIGHT will force the joystick right if the device is force feedback
FORCE ANGLE will force the joystick direction if the device is force feedback
FORCE CHAINSAW will force a chainsaw effect if the device is force feedback
FORCE SHOOT will force a gunshot effect if the device is force feedback
FORCE IMPACT will force a shudder effect if the device is force feedback
FORCE NO EFFECT will stop all force if the device is force feedback
FORCE WATER EFFECT will simulate water movement if the device is force feedback
FORCE AUTO CENTER ON will activate autocenter if the device is force feedback
FORCE AUTO CENTER OFF will deactivate autocenter if the device is force feedback

FILE SYSTEM COMMANDS

DIR will list files in the current directory to the screen
DRIVELIST will list available drives to the screen
PERFORM CHECKLIST FOR FILES will perform checklist for files in the current directory
PERFORM CHECKLIST FOR DRIVES will perform checklist for available drives
SET DIR will set the current directory
CD will set the current directory
FIND FIRST will find the first file in the current directory
FIND NEXT will find the next file in the current directory

MAKE FILE will make an empty file
DELETE FILE will delete an existing file
COPY FILE will copy an existing file
MOVE FILE will move an existing file
RENAME FILE will rename an existing file
EXECUTE FILE will shell execute a file

MAKE DIRECTORY will create a new directory
DELETE DIRECTORY will delete an existing directory

OPEN TO READ will open a file for reading
OPEN TO WRITE will open a file for writing
CLOSE FILE will close a file that is open
READ FILE will read a longword from an open file
READ BYTE will read a byte from an open file
READ WORD will read a word from an open file
READ LONG will read a longword from an open file
READ FLOAT will read a float from an open file
READ STRING will read a string from an open file
WRITE FILE will write a longword to an open file
WRITE BYTE will write a byte to an open file
WRITE WORD will write a word to an open file
WRITE LONG will write a longword to an open file
WRITE FLOAT will write a float to an open file
WRITE STRING will write a string to an open file

The next commands will return a result:

MOUSEX() will return the current X position of the mouse pointer
MOUSEY() will return the current Y position of the mouse pointer
MOUSEZ() will return the current Z position of the mouse pointer
MOUSEMOVEX() will return the current X movement of the mouse pointer
MOUSEMOVEY() will return the current Y movement of the mouse pointer
MOUSEMOVEZ() will return the current Z movement of the mouse pointer
MOUSECLICK() will return a one if a the left mouse button is pressed
INKEY$() will return key character string currently pressed
UPKEY() will return a one if the Up Arrow Key is being pressed
DOWNKEY() will return a one if the Down Arrow Key is being pressed
LEFTKEY() will return a one if the Left Arrow Key is being pressed
RIGHTKEY() will return a one if the Right Arrow Key is being pressed
CONTROLKEY() will return a one if the Control Key is being pressed
SHIFTKEY() will return a one if the Shift Key is being pressed
SPACEKEY() will return a one if the Space Key is being pressed
RETURNKEY() will return a one if the Return Key is being pressed
ESCAPEKEY() will return a one if the Escape Key is being pressed
KEYSTATE() will return a one if the key specified by the scancode is pressed
SCANCODE() will return the key scancode value currently pressed

JOYSTICK X() will return the X axis value of the the default analogue joystick
JOYSTICK Y() will return the Y axis value of the the default analogue joystick
JOYSTICK Z() will return the Z axis value of the the default analogue joystick
JOYSTICK FIRE A() will return a one if the default joystick fire button A is pressed
JOYSTICK FIRE B() will return a one if the default joystick fire button B is pressed
JOYSTICK FIRE C() will return a one if the default joystick fire button C is pressed
JOYSTICK FIRE D() will return a one if the default joystick fire button D is pressed
JOYSTICK UP() will return a one, if the default digital joystick is pushed up
JOYSTICK DOWN() will return a one, if the default digital joystick is pushed down
JOYSTICK LEFT() will return a one, if the default digital joystick is pushed left
JOYSTICK RIGHT() will return a one, if the default digital joystick is pushed right
JOYSTICK SLIDER A() will return the Slider A value of the the default joystick
JOYSTICK SLIDER B() will return the Slider B value of the the default joystick
CONTROL DEVICE NAME$() will return a string of the name of the current control device
CONTROL DEVICE X() will return the X axis value of the current control device
CONTROL DEVICE Y() will return the Y axis value of the current control device
CONTROL DEVICE Z() will return the Z axis value of the current control device

GET DIR$() will get the current directory
GET FILE NAME$() will get the current filename in the search
GET FILE DATE$() will get the current file date in the search
GET FILE TYPE() will get the current file type in the search

FILE EXIST() will return a one if the specified file exists
PATH EXIST() will return a one if the specified directory exists
FILE SIZE() will return the size in bytes of the specified file
FILE OPEN() will return a one if the specified file is open
FILE END() will return a one if the specified file has no more data to read