skyline
skyline copied to clipboard
Gamepad null pointer error
override fun dispatchKeyEvent(event : KeyEvent) : Boolean {
event.device ?: return super.dispatchKeyEvent(event)
//Other original code
}
override fun onGenericMotionEvent(event : MotionEvent) : Boolean {
event.device ?: return super.onGenericMotionEvent(event)
//Other original code
}
Wouldn't it be better to ignore some empty gamepad events?
This was closed by mistake, our apologies.
Thanks for the report. We're planning a refactor of how input works in skyline and we'll fix this as a result of that.
fine, thanks for your work
Did you notice any new instances of this error?
No, is there any related code to change?
Nope, just checking before closing this