hexware-kernel/patches/qemu/9010-antidetect-hw-input.patch

134 lines
4.3 KiB
Diff
Raw Normal View History

2024-07-26 03:09:31 +03:00
diff -Naur --no-dereference a/hw/input/adb-kbd.c b/hw/input/adb-kbd.c
2024-07-26 20:24:42 +03:00
--- a/hw/input/adb-kbd.c
+++ b/hw/input/adb-kbd.c
2024-07-26 03:09:31 +03:00
@@ -356,7 +356,7 @@
}
2024-07-26 20:54:13 +03:00
static const QemuInputHandler adb_keyboard_handler = {
2024-07-26 03:09:31 +03:00
- .name = "QEMU ADB Keyboard",
+ .name = "ASUS ADB Keyboard",
.mask = INPUT_EVENT_MASK_KEY,
.event = adb_keyboard_event,
};
diff -Naur --no-dereference a/hw/input/adb-mouse.c b/hw/input/adb-mouse.c
2024-07-26 20:24:42 +03:00
--- a/hw/input/adb-mouse.c
+++ b/hw/input/adb-mouse.c
2024-07-26 03:09:31 +03:00
@@ -236,7 +236,7 @@
amc->parent_realize(dev, errp);
- qemu_add_mouse_event_handler(adb_mouse_event, s, 0, "QEMU ADB Mouse");
+ qemu_add_mouse_event_handler(adb_mouse_event, s, 0, "ASUS ADB Mouse");
}
static void adb_mouse_initfn(Object *obj)
diff -Naur --no-dereference a/hw/input/ads7846.c b/hw/input/ads7846.c
2024-07-26 20:24:42 +03:00
--- a/hw/input/ads7846.c
+++ b/hw/input/ads7846.c
2024-07-26 03:09:31 +03:00
@@ -154,7 +154,7 @@
/* We want absolute coordinates */
qemu_add_mouse_event_handler(ads7846_ts_event, s, 1,
- "QEMU ADS7846-driven Touchscreen");
+ "ASUS ADS7846-driven Touchscreen");
ads7846_int_update(s);
diff -Naur --no-dereference a/hw/input/hid.c b/hw/input/hid.c
2024-07-26 20:24:42 +03:00
--- a/hw/input/hid.c
+++ b/hw/input/hid.c
2024-07-26 03:09:31 +03:00
@@ -511,20 +511,20 @@
}
2024-07-26 20:54:13 +03:00
static const QemuInputHandler hid_keyboard_handler = {
2024-07-26 03:09:31 +03:00
- .name = "QEMU HID Keyboard",
+ .name = "ASUS HID Keyboard",
.mask = INPUT_EVENT_MASK_KEY,
.event = hid_keyboard_event,
};
2024-07-26 20:54:13 +03:00
static const QemuInputHandler hid_mouse_handler = {
2024-07-26 03:09:31 +03:00
- .name = "QEMU HID Mouse",
+ .name = "ASUS HID Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
.event = hid_pointer_event,
.sync = hid_pointer_sync,
};
2024-07-26 20:54:13 +03:00
static const QemuInputHandler hid_tablet_handler = {
2024-07-26 03:09:31 +03:00
- .name = "QEMU HID Tablet",
+ .name = "ASUS HID Tablet",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_ABS,
.event = hid_pointer_event,
.sync = hid_pointer_sync,
diff -Naur --no-dereference a/hw/input/ps2.c b/hw/input/ps2.c
2024-07-26 20:24:42 +03:00
--- a/hw/input/ps2.c
+++ b/hw/input/ps2.c
2024-07-26 03:09:31 +03:00
@@ -1232,7 +1232,7 @@
};
2024-07-26 20:54:13 +03:00
static const QemuInputHandler ps2_keyboard_handler = {
2024-07-26 03:09:31 +03:00
- .name = "QEMU PS/2 Keyboard",
+ .name = "ASUS PS/2 Keyboard",
.mask = INPUT_EVENT_MASK_KEY,
.event = ps2_keyboard_event,
};
@@ -1243,7 +1243,7 @@
}
2024-07-26 20:54:13 +03:00
static const QemuInputHandler ps2_mouse_handler = {
2024-07-26 03:09:31 +03:00
- .name = "QEMU PS/2 Mouse",
+ .name = "ASUS PS/2 Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
.event = ps2_mouse_event,
.sync = ps2_mouse_sync,
diff -Naur --no-dereference a/hw/input/tsc2005.c b/hw/input/tsc2005.c
2024-07-26 20:24:42 +03:00
--- a/hw/input/tsc2005.c
+++ b/hw/input/tsc2005.c
2024-07-26 03:09:31 +03:00
@@ -510,7 +510,7 @@
tsc2005_reset(s);
qemu_add_mouse_event_handler(tsc2005_touchscreen_event, s, 1,
- "QEMU TSC2005-driven Touchscreen");
+ "ASUS TSC2005-driven Touchscreen");
qemu_register_reset((void *) tsc2005_reset, s);
vmstate_register(NULL, 0, &vmstate_tsc2005, s);
diff -Naur --no-dereference a/hw/input/tsc210x.c b/hw/input/tsc210x.c
2024-07-26 20:24:42 +03:00
--- a/hw/input/tsc210x.c
+++ b/hw/input/tsc210x.c
2024-07-26 03:09:31 +03:00
@@ -1122,7 +1122,7 @@
s->model = 0x2102;
2024-07-26 20:54:13 +03:00
s->name = "tsc2102";
2024-07-26 03:09:31 +03:00
- tsc210x_init(s, "QEMU TSC2102-driven Touchscreen", &vmstate_tsc2102);
+ tsc210x_init(s, "ASUS TSC2102-driven Touchscreen", &vmstate_tsc2102);
return &s->chip;
}
@@ -1143,7 +1143,7 @@
s->model = 0x2301;
s->name = "tsc2301";
- tsc210x_init(s, "QEMU TSC2301-driven Touchscreen", &vmstate_tsc2301);
+ tsc210x_init(s, "ASUS TSC2301-driven Touchscreen", &vmstate_tsc2301);
return &s->chip;
}
diff -Naur --no-dereference a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c
2024-07-26 20:24:42 +03:00
--- a/hw/input/virtio-input-hid.c
+++ b/hw/input/virtio-input-hid.c
2024-07-26 20:59:16 +03:00
@@ -17,8 +17,8 @@
2024-07-26 03:09:31 +03:00
#include "standard-headers/linux/input.h"
-#define VIRTIO_ID_NAME_KEYBOARD "QEMU Virtio Keyboard"
+#define VIRTIO_ID_NAME_KEYBOARD "ASUS Keyboard"
2024-07-26 20:59:16 +03:00
-#define VIRTIO_ID_NAME_MOUSE "QEMU Virtio Mouse"
2024-07-26 03:09:31 +03:00
+#define VIRTIO_ID_NAME_MOUSE "ASUS Mouse"
2024-07-26 20:59:16 +03:00
-#define VIRTIO_ID_NAME_TABLET "QEMU Virtio Tablet"
2024-07-26 03:09:31 +03:00
+#define VIRTIO_ID_NAME_TABLET "ASUS Tablet"
2024-07-26 20:59:16 +03:00
-#define VIRTIO_ID_NAME_MULTITOUCH "QEMU Virtio MultiTouch"
2024-07-26 03:09:31 +03:00
+#define VIRTIO_ID_NAME_MULTITOUCH "ASUS MultiTouch"
2024-07-26 20:59:16 +03:00
/* ----------------------------------------------------------------- */