Fix a bug with multiple joysticks disconnection.
fix the app skeleton enterframe callback prototype and impl