Diex4: DirectInput Exclusive Keyboard Input Sample

Click to open or copy the files for the Diex4 sample.

This DirectInput sample demonstrates an application which retrieves buffered keyboard data in exclusive mode via a game loop.

Building SDK Samples

This sample uses the following keywords:

acquire; appinit; beginpaint; complain; createdevice; createwindow; defwindowproc; destroywindow; diinit; directinputcreate; dispatchmessage; diterm; endpaint; ex_oneframe; ex_onpaint; ex_syncacquire; ex_wndproc; exttextout; failed; getdevicedata; invalidaterect; loadcursor; loadicon; lstrcmp; lstrcpy; lstrlen; makeintresource; messagebox; peekmessage; postquitmessage; registerclass; release; setcooperativelevel; setdataformat; setproperty; showwindow; sleep; succeeded; translatemessage; unacquire; waitmessage; winmain; wsprintf