EnableDirectInput(enable)

Parameters

enable - true for DirectInput or false for Windows (default).

Description

Enables or disables DirectInput.

Until v1.79 Blitz used DirectInput for mouse and keyboard handling, now it just uses standard Windows messages. This came about due to a few reports from end-users of games written in Blitz who suffered mouse/keyboard lockups.

See also: DirectInputEnabled.

Example

; EnableDirectInput

EnableDirectInput 0 ;disable

Print "DirectInput="+(DirectInputEnabled())

WaitKey()
End

Index

Click here to view the latest version of this page online