pub fn to_special_keycode(i: i32) -> Option<Input> {
    let index = if i <= KEY_F15 {
        i - KEY_OFFSET
    } else {
        i - KEY_OFFSET - 48
    };
    if index < 0 || index as usize >= SPECIAL_KEY_CODES.len() {
        None
    } else {
        Some(SPECIAL_KEY_CODES[index as usize])
    }
}
/// Converts an integer returned by getch() to a Input value
Converts an integer returned by getch() to a Input value
Converts an integer returned by getch () to a Input value
pub fn to_special_keycode(i: i32) -> Option<Input> {
    let index = if i <= KEY_F15 {
        i - KEY_OFFSET
    } else {
        i - KEY_OFFSET - 48
    };
    if index < 0 || index as usize >= SPECIAL_KEY_CODES.len() {
        None
    } else {
        Some(SPECIAL_KEY_CODES[index as usize])
    }
}
pub fn to_special_keycode ( i : i32 ) -> Option < Input > { let index = if i <= KEY_F15 { i - KEY_OFFSET } else { i - KEY_OFFSET - 48 } ; if index < 0 || index as usize >= SPECIAL_KEY_CODES . len ( ) { None } else { Some ( SPECIAL_KEY_CODES [ index as usize ] ) } }
Converts an integer returned by getch() to a Input value
Converts an integer returned by getch () to a Input value
i
i32
i
i32