Y-D002-239 controller

From JookWiki

The Y-D002-239 controller is a fairly cheap and simple wireless controller mimicking the style of a NES controller.

It's marketed under various names, but this page's name is the label printed on the back of the controller and most likely the name people will search for it by online.

Technical specifications[edit | edit source]

There's really not much to the controller, but here's some notes:

  • The USB dongle registers as ID 0079:0126 "DragonRise Inc. Controller"
  • Up and down are evdev ABS_Y, values 0 (down), 128 (neutral), 255 (up)
  • Left and right are evdev ABS_X, values 0 (left), 128 (neutral), 255 (up)
  • Select is evdev scan code 0x90009 EV_KEY BTN_TL2
  • Start is evdev scan code 0x9000A EV_KEY BTN_TR2
  • B button is evdev scan code 0x90003 EV_KEY BTN_C
  • A button is evdev scan code 0x90002 EV_KEY BTN_EAST

Information on the vendor can be found in FCC filing 2AQ4CY-D002-239.

Gallery[edit | edit source]

Open an image and read its summary section for a more in depth visual description.

xboxdrv config[edit | edit source]

Most games and emulators expect an Xbox 360 controller. xboxdrv can be used to map the keys to a new device properly.

Here's a config that should work, with the invocation command as a comment at the top:

# xboxdrv -c xboxdrv.cfg
[xboxdrv]
evdev=/dev/input/by-id/usb-0079_Controller-event-joystick
mimic-xpad=true
silent=true

[evdev-absmap]
ABS_X=X1
ABS_Y=Y1

[evdev-keymap]
BTN_C=b
BTN_EAST=a
BTN_TL2=select
BTN_TR2=start

I use the controller upside down, so if that interests you then try this configuration:

# xboxdrv -c xboxdrv.cfg
[xboxdrv]
evdev=/dev/input/by-id/usb-0079_Controller-event-joystick
mimic-xpad=true
silent=true

[evdev-absmap]
ABS_X=X1
ABS_Y=Y1

[evdev-keymap]
BTN_C=b
BTN_EAST=a
BTN_TL2=select
BTN_TR2=start

[axismap]
-X1 = X1
-Y1 = Y1