Click to See Complete Forum and Search --> : DirectInput


udipr
December 16th, 2001, 12:06 AM
Hello All

Can any body can explane to me what is a DirectInput ? And how can I catch or prevent DirectInput from the all system?

Thanks for any help

TekBoy
December 16th, 2001, 12:25 PM
I suggest you ask this question in the Programming Visual C++ forum.

TekBoy

P.S. please rate my post if it helped you

Andreas Masur
December 16th, 2001, 01:11 PM
'DirectInput' is part of DirectX and therefore for creating multimedia applications in Windows. 'DirectInput' device mapping offers developers simplified device support and allows developers to create games for a variety of input devices, including full support for force-feedback technology. It is used to process data from a keyboard, mouse, joystick, or other game controller.

'DirectInput' works directly with the device drivers, it either suppresses or ignores Windows mouse and keyboard messages. It also ignores mouse and keyboard settings made by the user in Control Panel. It does, however, use the calibrations set for a joystick or other game controller.

'DirectInput' does not recognize keyboard character repeat settings. When using buffered data, 'DirectInput' interprets each press and release as a single event with no repetition. When using immediate data, 'DirectInput' is concerned only with the present physical state of the keys, not with keyboard events as interpreted by Windows.

'DirectInput' does not perform any character conversion or translation. For example, the SHIFT key is treated like any other key, not as a modifier of another keypress. Keys return the same identifiers regardless of the user's system language settings.

Under Windows 2000, acquiring the keyboard in exclusive mode prevents any applications that are subsequently launched from receiving keyboard data.

Because 'DirectInput' works directly with the mouse driver, it bypasses the subsystem of Windows that interprets mouse data for windowed applications. Applications that rely on the Windows cursor for navigation should continue to use the standard Windows mouse messages and Microsoft Win32 functions.

When using the system mouse in exclusive mode, 'DirectInput' suppresses mouse messages, and therefore Windows is unable to show the standard cursor.

'DirectInput' ignores Control Panel settings such as acceleration and swapped buttons. However, 'DirectInput' recognizes settings in the driver itself. For example, if the user has a three-button mouse and uses the driver-utility software to make the middle button a double-click shortcut, 'DirectInput' reports a click of the middle button as two clicks of the primary button.

If you want further information take a look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_c/directx_cpp/Input/DirectinputRoadmap.asp

Ciao, Andreas

"Software is like sex, it's better when it's free." - Linus Torvalds