Ucom Gamepad Driver ((new)) -

ugen0.2: <Sony DualShock 4> at usbus0 ujoy0: <Sony DualShock 4 gamepad> on usbus0 Applications can read input using standard file operations:

int fd = open("/dev/ujoy0", O_RDONLY); struct ujoy_event ev; while (read(fd, &ev, sizeof(ev)) == sizeof(ev)) switch (ev.type) case UJOY_BUTTON: printf("Button %d = %d\n", ev.code, ev.value); break; case UJOY_AXIS: printf("Axis %d = %d\n", ev.code, ev.value); break; ucom gamepad driver

usbconfig list usbconfig -d ugen0.2 dump_device_desc usbconfig -d ugen0.2 dump_curr_config_desc Enable verbose driver messages (kernel debug): Sony DualShock 4&gt