steve281188

Untitled

Aug 5th, 2021
984
321 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # evtest
  2. No device specified, trying to scan all of /dev/input/event*
  3. Available devices:
  4. /dev/input/event0:      DragonRise Inc.   Generic   USB  Joystick
  5. /dev/input/event1:      vc4
  6. /dev/input/event2:      vc4
  7. /dev/input/event3:      DragonRise Inc.   Generic   USB  Joystick
  8.  
  9. Master (0), should be player 1:
  10. Event: time 1628197863.132351, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90007
  11. Event: time 1628197863.132351, type 1 (EV_KEY), code 294 (BTN_BASE), value 0
  12. Event: time 1628197863.132351, -------------- SYN_REPORT ------------
  13. Event: time 1628197863.172413, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90007
  14. Event: time 1628197863.172413, type 1 (EV_KEY), code 294 (BTN_BASE), value 1
  15.  
  16. Slave (1), should be player 2:
  17. Event: time 1628197901.873448, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90007
  18. Event: time 1628197901.873448, type 1 (EV_KEY), code 294 (BTN_BASE), value 0
  19. Event: time 1628197901.881445, -------------- SYN_REPORT ------------
  20. Event: time 1628197901.921457, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90007
  21. Event: time 1628197901.921457, type 1 (EV_KEY), code 294 (BTN_BASE), value 1
  22.  
  23. _______________________________________
  24.  
  25. # evtest --info /dev/input/event0
  26. Input driver version is 1.0.1
  27. Input device ID: bus 0x3 vendor 0x79 product 0x6 version 0x110
  28. Input device name: "DragonRise Inc.   Generic   USB  Joystick  "
  29. Supported events:
  30.   Event type 0 (EV_SYN)
  31.   Event type 1 (EV_KEY)
  32.     Event code 288 (BTN_TRIGGER)
  33.     Event code 289 (BTN_THUMB)
  34.     Event code 290 (BTN_THUMB2)
  35.     Event code 291 (BTN_TOP)
  36.     Event code 292 (BTN_TOP2)
  37.     Event code 293 (BTN_PINKIE)
  38.     Event code 294 (BTN_BASE)
  39.     Event code 295 (BTN_BASE2)
  40.     Event code 296 (BTN_BASE3)
  41.     Event code 297 (BTN_BASE4)
  42.     Event code 298 (BTN_BASE5)
  43.     Event code 299 (BTN_BASE6)
  44.   Event type 3 (EV_ABS)
  45.     Event code 0 (ABS_X)
  46.       Value    127
  47.       Min        0
  48.       Max      255
  49.       Flat      15
  50.     Event code 1 (ABS_Y)
  51.       Value    127
  52.       Min        0
  53.       Max      255
  54.       Flat      15
  55.     Event code 2 (ABS_Z)
  56.       Value    133
  57.       Min        0
  58.       Max      255
  59.       Flat      15
  60.     Event code 3 (ABS_RX)
  61.       Value    127
  62.       Min        0
  63.       Max      255
  64.       Flat      15
  65.     Event code 5 (ABS_RZ)
  66.       Value    127
  67.       Min        0
  68.       Max      255
  69.       Flat      15
  70.     Event code 16 (ABS_HAT0X)
  71.       Value      0
  72.       Min       -1
  73.       Max        1
  74.     Event code 17 (ABS_HAT0Y)
  75.       Value      0
  76.       Min       -1
  77.       Max        1
  78.   Event type 4 (EV_MSC)
  79.     Event code 4 (MSC_SCAN)
  80. _________________________________________
  81.  
  82. # udevadm info -q all -n /dev/input/event0
  83. P: /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0079:0006.0001/input/input0/event0
  84. N: input/event0
  85. S: input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick
  86. S: input/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-event-joystick
  87. E: DEVLINKS=/dev/input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick /dev/input/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-event-joystick
  88. E: DEVNAME=/dev/input/event0
  89. E: DEVPATH=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0079:0006.0001/input/input0/event0
  90. E: ID_BUS=usb
  91. E: ID_INPUT=1
  92. E: ID_INPUT_JOYSTICK=1
  93. E: ID_MODEL=Generic_USB_Joystick
  94. E: ID_MODEL_ENC=Generic\x20\x20\x20USB\x20\x20Joystick\x20\x20
  95. E: ID_MODEL_ID=0006
  96. E: ID_PATH=platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0
  97. E: ID_PATH_TAG=platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_4_1_0
  98. E: ID_REVISION=0107
  99. E: ID_SERIAL=DragonRise_Inc._Generic_USB_Joystick
  100. E: ID_TYPE=hid
  101. E: ID_USB_DRIVER=usbhid
  102. E: ID_USB_INTERFACES=:030000:
  103. E: ID_USB_INTERFACE_NUM=00
  104. E: ID_VENDOR=DragonRise_Inc.
  105. E: ID_VENDOR_ENC=DragonRise\x20Inc.\x20\x20
  106. E: ID_VENDOR_ID=0079
  107. E: LIBINPUT_DEVICE_GROUP=3/79/6:usb-0000:01:00.0-1
  108. E: MAJOR=13
  109. E: MINOR=64
  110. E: SUBSYSTEM=input
  111. E: USEC_INITIALIZED=4480670
  112.  
  113. ________________________________________________________
  114.  
  115. # sdl2-jstest -l
  116. Found 2 joystick(s)
  117.  
  118. Joystick Name:     'DragonRise Inc.   Generic   USB  Joystick  '
  119. Joystick Path:     '/dev/input/event0'
  120. Joystick GUID:     03000000790000000600000010010000
  121. Joystick Number:    0
  122. Number of Axes:     5
  123. Number of Buttons: 12
  124. Number of Hats:     1
  125. Number of Balls:    0
  126. GameController:
  127.   not a gamepad
  128. Axis code  0:    0
  129. Axis code  1:    1
  130. Axis code  2:    2
  131. Axis code  3:    3
  132. Axis code  4:    5
  133. Button code  0:   288
  134. Button code  1:   289
  135. Button code  2:   290
  136. Button code  3:   291
  137. Button code  4:   292
  138. Button code  5:   293
  139. Button code  6:   294
  140. Button code  7:   295
  141. Button code  8:   296
  142. Button code  9:   297
  143. Button code 10:   298
  144. Button code 11:   299
  145. Hat code  0:   -1
  146.  
  147. Joystick Name:     'DragonRise Inc.   Generic   USB  Joystick  '
  148. Joystick Path:     '/dev/input/event3'
  149. Joystick GUID:     03000000790000000600000010010000
  150. Joystick Number:    1
  151. Number of Axes:     5
  152. Number of Buttons: 12
  153. Number of Hats:     1
  154. Number of Balls:    0
  155. GameController:
  156.   not a gamepad
  157. Axis code  0:    0
  158. Axis code  1:    1
  159. Axis code  2:    2
  160. Axis code  3:    3
  161. Axis code  4:    5
  162. Button code  0:   288
  163. Button code  1:   289
  164. Button code  2:   290
  165. Button code  3:   291
  166. Button code  4:   292
  167. Button code  5:   293
  168. Button code  6:   294
  169. Button code  7:   295
  170. Button code  8:   296
  171. Button code  9:   297
  172. Button code 10:   298
  173. Button code 11:   299
  174. Hat code  0:   -1
  175.  
  176. ____________________________________________
  177.  
  178. MASTER, PLAYER 1:
  179. # sdl2-jstest -e 0
  180. Joystick Name:     'DragonRise Inc.   Generic   USB  Joystick  '
  181. Joystick Path:     '/dev/input/event0'
  182. Joystick GUID:     03000000790000000600000010010000
  183. Joystick Number:    0
  184. Number of Axes:     5
  185. Number of Buttons: 12
  186. Number of Hats:     1
  187. Number of Balls:    0
  188. GameController:
  189.   not a gamepad
  190. Axis code  0:    0
  191. Axis code  1:    1
  192. Axis code  2:    2
  193. Axis code  3:    3
  194. Axis code  4:    5
  195. Button code  0:   288
  196. Button code  1:   289
  197. Button code  2:   290
  198. Button code  3:   291
  199. Button code  4:   292
  200. Button code  5:   293
  201. Button code  6:   294
  202. Button code  7:   295
  203. Button code  8:   296
  204. Button code  9:   297
  205. Button code 10:   298
  206. Button code 11:   299
  207. Hat code  0:   -1
  208.  
  209. Entering joystick test loop, press Ctrl-c to exit
  210. SDL_JOYDEVICEADDED which:0
  211. SDL_JOYDEVICEADDED which:1
  212. SDL_JOYBUTTONDOWN: joystick: 0 button: 6 state: 1 code:294
  213. SDL_JOYBUTTONUP: joystick: 0 button: 6 state: 0 code:294
  214.  
  215. ________________________________________________
  216.  
  217. SLAVE, PLAYER 2:
  218. # sdl2-jstest -e 1
  219. Joystick Name:     'DragonRise Inc.   Generic   USB  Joystick  '
  220. Joystick Path:     '/dev/input/event3'
  221. Joystick GUID:     03000000790000000600000010010000
  222. Joystick Number:    1
  223. Number of Axes:     5
  224. Number of Buttons: 12
  225. Number of Hats:     1
  226. Number of Balls:    0
  227. GameController:
  228.   not a gamepad
  229. Axis code  0:    0
  230. Axis code  1:    1
  231. Axis code  2:    2
  232. Axis code  3:    3
  233. Axis code  4:    5
  234. Button code  0:   288
  235. Button code  1:   289
  236. Button code  2:   290
  237. Button code  3:   291
  238. Button code  4:   292
  239. Button code  5:   293
  240. Button code  6:   294
  241. Button code  7:   295
  242. Button code  8:   296
  243. Button code  9:   297
  244. Button code 10:   298
  245. Button code 11:   299
  246. Hat code  0:   -1
  247.  
  248. Entering joystick test loop, press Ctrl-c to exit
  249. SDL_JOYDEVICEADDED which:0
  250. SDL_JOYDEVICEADDED which:1
  251. SDL_JOYBUTTONDOWN: joystick: 1 button: 6 state: 1 code:294
  252. SDL_JOYBUTTONUP: joystick: 1 button: 6 state: 0 code:294
  253.  
  254.  
RAW Paste Data