Je cherche depuis 1h - 2h sur ce site...
Il ya bien des information.... Mais je ne sait pas comment utiliser le code qu'il donne
Car il le donne en C++ ou Delphi....
Peux être pourriez vous m'aider...... :
To process WM_INPUT messages, the application must first register the devices from which it receives data. You can do this by using the Win32® function
RegisterRawInputDevices. Each
RAWINPUTDEVICE structure passed to this function specifies one usage page and usage.
EXEMPLE DE CODE :
using System.Windows.Forms;
.
.
.
class Form1Window : NativeWindow
{
private const int WM_KEYDOWN = 0x0100;
private int iChar;
public Form1 form;
protected override void WndProc(ref Message message)
{
// Handle the navigation and numeric buttons.
if (message.Msg == WM_KEYDOWN)
{
iChar = message.WParam.ToInt32();
switch(iChar)
{
case (int)Keys.D0:
// Handle 0 key here.
break;
// Insert more cases here.
.
.
.
} // End switch.
} // End key messages.
base.WndProc(ref message);
} // End WndProc
} // End class.