Update TabletTester to work with TestDevices

interception_wait
Clive Galway 2 years ago
parent c52a72e343
commit c908516efe

@ -11,7 +11,7 @@ namespace TestApp
//var mbt = new MouseButtonsTester(TestDevices.LogitechWheelMouse);
//var kt = new KeyboardTester(TestDevices.WyseKeyboard);
//var kkt = new KeyboardKeyTester(TestDevices.WyseKeyboard, AhkKeys.Obj("1"));
//var tt = new TabletTester();
//var tt = new TabletTester(TestDevices.ParbloIslandA609);
var sct = new ScanCodeTester(TestDevices.WyseKeyboard);
//var sst = new SetStateTester(TestDevices.WyseKeyboard, AhkKeys.Obj("1"));
Console.ReadLine();

@ -10,11 +10,12 @@ namespace TestApp
{
public class TabletTester
{
public TabletTester()
public TabletTester(TestDevice device)
{
var im = new Manager();
var devId = im.GetMouseIdFromHandle("HID\\VID_0B57&PID_9091&REV_0101&Col01");
var devId = device.GetDeviceId();
if (devId == 0) return;
var counter = 0;
if (devId != 0)

@ -11,6 +11,7 @@ namespace TestApp
{
public static TestDevice WyseKeyboard { get; } = new TestDevice { IsMouse = false, Vid = 0x04F2, Pid = 0x0112 };
public static TestDevice LogitechWheelMouse { get; } = new TestDevice { IsMouse = true, Vid = 0x046D, Pid = 0xC00C };
public static TestDevice ParbloIslandA609 { get; } = new TestDevice { IsMouse = true, Handle = "HID\\VID_0B57&PID_9091&REV_0101&Col01" };
}
public class TestDevice

Loading…
Cancel
Save