DirectInput на LinuxLinux

Ответить
Anonymous
 DirectInput на Linux

Сообщение Anonymous »

Я пытаюсь прочитать устройство DirectInput под Linux. < /p>
lsusb: < /p>

Код: Выделить всё

Bus 003 Device 006: ID 046d:c219 Logitech, Inc. F710 Gamepad [DirectInput Mode]
< /code>
sudo dmesg | grep -i logitech: < /p>
[ 3738.810973] logitech 0003:046D:C219.000A: input,hidraw8: USB HID v1.10 Gamepad [game 游戏手柄] on usb-0000:0a:00.3-2.3/input0
[ 3738.810982] logitech 0003:046D:C219.000A: missing HID_OUTPUT_REPORT 0
< /code>
ls /dev /| Греп HID: < /p>
hidraw0
hidraw1
hidraw2
hidraw3
hidraw4
hidraw5
hidraw6
hidraw7
uhid
< /code>
только идет до 7, а не 8: (< /p>
udevadm monitor при подключении: < /p>
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[4618.774609] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3 (usb)
KERNEL[4618.859136] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0 (usb)
KERNEL[4618.860049] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C (hid)
KERNEL[4618.860281] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30 (input)
KERNEL[4618.860397] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30/event27 (input)
KERNEL[4618.860480] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30/js0 (input)
KERNEL[4618.860567] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/hidraw/hidraw8 (hidraw)
KERNEL[4618.860674] remove   /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30/event27 (input)
KERNEL[4618.870216] remove   /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30/js0 (input)
KERNEL[4618.887225] remove   /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30 (input)
KERNEL[4618.887338] remove   /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/hidraw/hidraw8 (hidraw)
KERNEL[4618.887408] bind     /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0 (usb)
KERNEL[4618.887507] bind     /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3 (usb)
UDEV  [4618.900197] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3 (usb)
UDEV  [4618.906487] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0 (usb)
UDEV  [4618.910584] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C (hid)
UDEV  [4618.917739] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/hidraw/hidraw8 (hidraw)
UDEV  [4618.919709] remove   /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/hidraw/hidraw8 (hidraw)
UDEV  [4619.219420] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30 (input)
UDEV  [4620.095442] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30/js0 (input)
UDEV  [4620.109143] remove   /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30/js0 (input)
UDEV  [4620.129855] add      /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30/event27 (input)
UDEV  [4620.132286] remove   /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30/event27 (input)
UDEV  [4620.134369] remove   /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C219.000C/input/input30 (input)
UDEV  [4620.142158] bind     /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3/3-2.3:1.0 (usb)
UDEV  [4620.152604] bind     /devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-2/3-2.3 (usb)
Но, к сожалению, нет джойстика или события: (
Кто -нибудь знает, как обойти это?

Подробнее здесь: https://stackoverflow.com/questions/797 ... t-on-linux
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»