Hello there! I just started using minifb, and was looking at the source for KeyHandler::get_keys when I noticed that it returned a Option<Vec<Key>>, but I didn’t see a case in which it would ever return None.
I am curious what the reasoning behind that is. To me it seems like returning just a Vec<Keys> would suffice, as if no keys are pressed, the Vec is empy.
Hello there! I just started using minifb, and was looking at the source for
KeyHandler::get_keys
when I noticed that it returned aOption<Vec<Key>>
, but I didn’t see a case in which it would ever returnNone
.I am curious what the reasoning behind that is. To me it seems like returning just a
Vec<Keys>
would suffice, as if no keys are pressed, theVec
is empy.Thanks for your time!