I think you should find the interface device you want to use first, then read about its SDK and development tools and standards, then program or hire a programmer to create the bridge between the two in a DLL or possibly Lite-C. So, as an external library or plugin. Possibly there are brain interface devices which can output regular joystick signals, if you could find such a product then there are no special programming considerations.