Updated device registration behavior

Keyboard and joystick devices are now only created, if the command line
parameter is set accordingly.