Click to open or copy the files for the Diex1 sample.
This DirectInput sample demonstrates receiving relative mouse data in nonexclusive mode via a game loop.
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; getdevicestate; invalidaterect; loadcursor; loadicon; lstrcmp; lstrcpy; lstrlen; makeintresource; messagebox; peekmessage; postquitmessage; registerclass; release; setcooperativelevel; setdataformat; showwindow; sleep; succeeded; translatemessage; unacquire; waitmessage; winmain; wsprintf