Home
last modified time | relevance | path

Searched refs:hat_switch_map (Results 1 – 1 of 1) sorted by relevance

/freebsd-13-stable/sys/dev/hid/
HDhgame.c85 static const struct { int32_t x; int32_t y; } hat_switch_map[] = { in hgame_hat_switch_cb() local
100 idx = MIN(nitems(hat_switch_map) - 1, (u_int)ctx.data); in hgame_hat_switch_cb()
101 evdev_push_abs(evdev, ABS_HAT0X, hat_switch_map[idx].x); in hgame_hat_switch_cb()
102 evdev_push_abs(evdev, ABS_HAT0Y, hat_switch_map[idx].y); in hgame_hat_switch_cb()