I recently got Asus TUF GAMING M3 GEN II Mouse and Defold thinks its a gamepad during build and only then. I assume this is because linux thinks that the mouse has a keyboard as its own device or something. No actual gamepad inputs happen when I press or move the mouse after the initial startup.
WARNING:INPUT: No gamepad map found for gamepad 1 (ASUSTeK TUF GAMING M3 GEN II Keyboard). The raw gamepad map will be used.
I’m not sure what to do about this, or if there is a real need to do anything. It is a bit annoying though.
I put pprint(action) inside on_input() in the first script that runs:
{ --[[0x7f7575873f10]]
text = "ASUSTeK TUF GAMING M3 GEN II Keyboard",
userid = 0,
gamepad_unknown = true,
gamepad = 1,
gamepad_name = "ASUSTeK TUF GAMING M3 GEN II Keyboard",
gamepad_guid = "03000000050b00009b1a000010010000",
gamepad_guid_info = { --[[0x7f7575857650]]
bus = 3,
crc = 0,
vendor = 2821,
product = 6811,
version = 272
}
}
[08:33:06] input: ASUSTeK TUF GAMING M3 GEN II Mouse as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2/4-1.2:1.0/0003:0B05:1A9B.0001/input/input2
[08:33:06] input: ASUSTeK TUF GAMING M3 GEN II Keyboard as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2/4-1.2:1.0/0003:0B05:1A9B.0001/input/input4
[08:33:06] hid-generic 0003:0B05:1A9B.0001: input,hiddev96,hidraw0: USB HID v1.10 Mouse [ASUSTeK TUF GAMING M3 GEN II] on usb-0000:00:1d.0-1.2/input0
[08:33:06] hid-generic 0003:0B05:1A9B.0002: input,hidraw1: USB HID v1.10 Mouse [ASUSTeK TUF GAMING M3 GEN II] on usb-0000:00:1d.0-1.2/input1
[08:33:11] mousedev: PS/2 mouse device common for all mice
[08:33:13] input: ASUSTeK TUF GAMING M3 GEN II Mouse as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2/4-1.2:1.0/0003:0B05:1A9B.0004/input/input14
[08:33:13] input: ASUSTeK TUF GAMING M3 GEN II Keyboard as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2/4-1.2:1.0/0003:0B05:1A9B.0004/input/input16
[08:33:13] hid-generic 0003:0B05:1A9B.0004: input,hiddev96,hidraw0: USB HID v1.10 Mouse [ASUSTeK TUF GAMING M3 GEN II] on usb-0000:00:1d.0-1.2/input0
[08:33:13] hid-generic 0003:0B05:1A9B.0005: input,hidraw1: USB HID v1.10 Mouse [ASUSTeK TUF GAMING M3 GEN II] on usb-0000:00:1d.0-1.2/input1
[08:33:30] usb 4-1.1: Product: USB Keyboard
[08:33:30] input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:04D9:0230.0007/input/input18
[08:33:30] hid-generic 0003:04D9:0230.0007: input,hidraw3: USB HID v1.10 Keyboard [USB Keyboard] on usb-0000:00:1d.0-1.1/input0
[08:33:30] input: USB Keyboard Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:04D9:0230.0008/input/input19
[08:33:30] input: USB Keyboard System Control as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.1/0003:04D9:0230.0008/input/input20
[08:33:30] hid-generic 0003:04D9:0230.0008: input,hidraw4: USB HID v1.10 Device [USB Keyboard] on usb-0000:00:1d.0-1.1/input1