The easiest way to build one is to take an abandoned joystick or other controller with plenty of buttons, tear it apart, replace worn out buttons with new ones and assemble the whole thing into a soap box. Note that a hat switch is made of four regular buttons. The new controller will of course carry the name of its origin, but don't let it confuse you.