Closed tyrondis closed 3 years ago
Even though Keyboard.notify() and Keyboard.remove() treat all listeners as nullable, they are not marked as such. This leads to compile errors when using --macro nullSafety('[...]', StrictThreaded). This PR marks the parameters as nullable.
Keyboard.notify()
Keyboard.remove()
--macro nullSafety('[...]', StrictThreaded)
I just realised that the same problem occurs in other input classes (e.g. Mouse). I am going to adjust them as well in a bit.
Mouse
Even though
Keyboard.notify()
andKeyboard.remove()
treat all listeners as nullable, they are not marked as such. This leads to compile errors when using--macro nullSafety('[...]', StrictThreaded)
. This PR marks the parameters as nullable.