Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.49k stars 174 forks source link

Mark input listeners as nullable #1313

Closed tyrondis closed 3 years ago

tyrondis commented 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.

tyrondis commented 3 years ago

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.