Header menu logo Mibo

KeyCode Module

Functions for translating between MonoGame's Keys and Mibo's backend-neutral KeyCode.

Functions and values

Function or value Description

ofMonoGameKey k

Full Usage: ofMonoGameKey k

Parameters:
Returns: KeyCode

Maps a MonoGame Keys to the backend-neutral KeyCode. Returns KeyCode.Unknown for any key with no logical equivalent.

k : Keys
Returns: KeyCode

toMonoGameKey k

Full Usage: toMonoGameKey k

Parameters:
Returns: Keys

Maps a backend-neutral KeyCode back to a MonoGame Keys. Returns Keys.None for KeyCode.Unknown and for codes with no MG equivalent.

k : KeyCode
Returns: Keys

Type something to start searching.