pub fn update_keypad(&mut self, key: sdl2::keyboard::Keycode, key_down: bool) {
        if let Some(hex) = self.keycode_to_hex(key) {
            self.keypad[hex as usize] = key_down as u8;
        }
    }
/// Update the keypad to reflect a keypress.
Update the keypad to reflect a keypress.
Update the keypad to reflect a keypress .
pub fn update_keypad(&mut self, key: sdl2::keyboard::Keycode, key_down: bool) {
        if let Some(hex) = self.keycode_to_hex(key) {
            self.keypad[hex as usize] = key_down as u8;
        }
    }
pub fn update_keypad ( & mut self , key : sdl2 :: keyboard :: Keycode , key_down : bool ) { if let Some ( hex ) = self . keycode_to_hex ( key ) { self . keypad [ hex as usize ] = key_down as u8 ; } }
Update the keypad to reflect a keypress.
Update the keypad to reflect a keypress .
&mut self
key
sdl2::keyboard::Keycode
key_down
bool
&mut self
key
sdl2::keyboard::Keycode
key_down
bool