DirectInput.dlm
Snapshot of the directInput demo program.
The directInput dlm is a collection of functions that enable IDL to access keyboard, mouse, and game devices using the DirectInput component of Microsoft's DirectX. DirectX is a set of low-level APIs used for creating games and multimedia applications. The directInput dlm is a win32 only dlm which has been compiled for IDL versions 5.5+ and requires DirectX8 or better. The latest version of directX can be had at the DirectX website.
directInput.dlm allows the IDL programmer to access a wide range of input devices for use in interactive IDL applications. Currently the DLM supports only immediate mode data meaning the devices need to be polled to retrieve their status. This requires that you structure your IDL applications around a timer event loop. An example program is provided.
The dlm was updated on 8/26/2002 to incorporate a slight change suggested by Andrew Cool. The dlm was updated again on 10/15/2003 to accommodate multiple interface instances. This change will break old code but provides much more flexibility in acquiring input from multiple windows.
Documentation
Download
The directInput.dlm package includes the compiled .dlm, an example program, and documentation. The .dlm requires DirectX 8 or better and has been developed and tested in IDL 5.5-6.0 on Windows 2000 SP-4 and DirectX 9.0b.
directInputDLM.zipDemo Programs
camdemo_di_cullnfly.pro
This program demonstrates the use of view frustum culling, pixel aspect ratio locking, zooming, and navigating 3-space using the Truck and Pan methods and my directInput DLM. This demo requires a very capable computer, the RHTgrCamera package, and my modified orb__define.pro object.