C# Class SharpOS.Kernel.KeyMap

Afficher le fichier Open project: sharpos/SharpOS Class Usage Examples

Méthodes publiques

Méthode Description
GetBuiltinKeyMap ( CString8 name ) : void*

Gets the address of a builtin keymap included in the kernel via the keymap archive resource in SharpOS.Kernel.dll. The archive is generated by the SharpOS keymap compiler.

GetBuiltinKeyMap ( PString8 name ) : void*

Gets the address of a builtin keymap included in the kernel via the keymap archive resource in SharpOS.Kernel.dll. The archive is generated by the SharpOS keymap compiler.

GetBuiltinKeyMap ( byte name ) : void*

Gets the address of a builtin keymap included in the kernel via the keymap archive resource in SharpOS.Kernel.dll. The archive is generated by the SharpOS keymap compiler.

GetBuiltinKeyMap ( int id ) : void*

Gets the address of a builtin key map, by it's numeric ID. Good for iterating through the list of builtin key maps.

GetBuiltinKeyMap ( string name ) : void*

Gets the address of a builtin keymap included in the kernel via the keymap archive resource in SharpOS.Kernel.dll. The archive is generated by the SharpOS keymap compiler.

GetBuiltinKeyMapsCount ( ) : int

Gets the count of all builtin key maps.

GetCurrentKeyMap ( ) : void*

Gets the keymap currently in use.

GetCurrentKeyMapName ( ) : PString8*
GetDefaultTable ( int ret_len ) : byte*

Gets the `default' table of the installed keymap.

GetDefaultTable ( void keymap, int ret_len ) : byte*

Gets the `default' table of the given keymap.

GetKeyMask ( ) : byte

Gets the keymask of the installed keymap.

GetKeyMask ( void keymap ) : byte

Gets the keymask specified in the given keymap.

GetShiftedTable ( int ret_len ) : byte*

Gets the `shifted' table of the installed keymap.

GetShiftedTable ( void keymap, int ret_len ) : byte*

Gets the `shifted' table of the given keymap.

GetStateBit ( ) : byte

Gets the state bit of the installed keymap.

GetStateBit ( void keymap ) : byte

Gets the state bit specified in the given keymap.

SetDirectKeyMap ( void keymap ) : void

Installs the default and shifted key tables of the given keymap, so that all further keyboard scancodes are converted using the new mapping.

SetKeyMap ( CString8 name ) : void

Sets the current keymap to a built-in one specified by name.

SetKeyMap ( PString8 name ) : void

Sets the current keymap to a built-in one specified by name.

SetKeyMap ( byte name ) : void
SetKeyMap ( byte name, int len ) : void

Sets the current keymap to a built-in one specified by name.

SetKeyMapName ( byte str, int len ) : void
Setup ( ) : void

Locates the archive of built-in keymaps, parses the user-specified keymap from the kernel command line, and installs a default keymap.

WriteKeymaps ( ) : void

Private Methods

Méthode Description
GetBuiltinKeyMap ( byte name, int nameLen ) : void*

Method Details

GetBuiltinKeyMap() public static méthode

Gets the address of a builtin keymap included in the kernel via the keymap archive resource in SharpOS.Kernel.dll. The archive is generated by the SharpOS keymap compiler.
public static GetBuiltinKeyMap ( CString8 name ) : void*
name SharpOS.Kernel.Foundation.CString8 The name.
Résultat void*

GetBuiltinKeyMap() public static méthode

Gets the address of a builtin keymap included in the kernel via the keymap archive resource in SharpOS.Kernel.dll. The archive is generated by the SharpOS keymap compiler.
public static GetBuiltinKeyMap ( PString8 name ) : void*
name SharpOS.Kernel.Foundation.PString8 The name.
Résultat void*

GetBuiltinKeyMap() public static méthode

Gets the address of a builtin keymap included in the kernel via the keymap archive resource in SharpOS.Kernel.dll. The archive is generated by the SharpOS keymap compiler.
public static GetBuiltinKeyMap ( byte name ) : void*
name byte The name.
Résultat void*

GetBuiltinKeyMap() public static méthode

Gets the address of a builtin key map, by it's numeric ID. Good for iterating through the list of builtin key maps.
public static GetBuiltinKeyMap ( int id ) : void*
id int
Résultat void*

GetBuiltinKeyMap() public static méthode

Gets the address of a builtin keymap included in the kernel via the keymap archive resource in SharpOS.Kernel.dll. The archive is generated by the SharpOS keymap compiler.
public static GetBuiltinKeyMap ( string name ) : void*
name string The name.
Résultat void*

GetBuiltinKeyMapsCount() public static méthode

Gets the count of all builtin key maps.
public static GetBuiltinKeyMapsCount ( ) : int
Résultat int

GetCurrentKeyMap() public static méthode

Gets the keymap currently in use.
public static GetCurrentKeyMap ( ) : void*
Résultat void*

GetCurrentKeyMapName() public static méthode

public static GetCurrentKeyMapName ( ) : PString8*
Résultat PString8*

GetDefaultTable() public static méthode

Gets the `default' table of the installed keymap.
public static GetDefaultTable ( int ret_len ) : byte*
ret_len int
Résultat byte*

GetDefaultTable() public static méthode

Gets the `default' table of the given keymap.
public static GetDefaultTable ( void keymap, int ret_len ) : byte*
keymap void
ret_len int
Résultat byte*

GetKeyMask() public static méthode

Gets the keymask of the installed keymap.
public static GetKeyMask ( ) : byte
Résultat byte

GetKeyMask() public static méthode

Gets the keymask specified in the given keymap.
public static GetKeyMask ( void keymap ) : byte
keymap void
Résultat byte

GetShiftedTable() public static méthode

Gets the `shifted' table of the installed keymap.
public static GetShiftedTable ( int ret_len ) : byte*
ret_len int
Résultat byte*

GetShiftedTable() public static méthode

Gets the `shifted' table of the given keymap.
public static GetShiftedTable ( void keymap, int ret_len ) : byte*
keymap void
ret_len int
Résultat byte*

GetStateBit() public static méthode

Gets the state bit of the installed keymap.
public static GetStateBit ( ) : byte
Résultat byte

GetStateBit() public static méthode

Gets the state bit specified in the given keymap.
public static GetStateBit ( void keymap ) : byte
keymap void
Résultat byte

SetDirectKeyMap() public static méthode

Installs the default and shifted key tables of the given keymap, so that all further keyboard scancodes are converted using the new mapping.
public static SetDirectKeyMap ( void keymap ) : void
keymap void
Résultat void

SetKeyMap() public static méthode

Sets the current keymap to a built-in one specified by name.
public static SetKeyMap ( CString8 name ) : void
name SharpOS.Kernel.Foundation.CString8
Résultat void

SetKeyMap() public static méthode

Sets the current keymap to a built-in one specified by name.
public static SetKeyMap ( PString8 name ) : void
name SharpOS.Kernel.Foundation.PString8
Résultat void

SetKeyMap() public static méthode

public static SetKeyMap ( byte name ) : void
name byte
Résultat void

SetKeyMap() public static méthode

Sets the current keymap to a built-in one specified by name.
public static SetKeyMap ( byte name, int len ) : void
name byte
len int
Résultat void

SetKeyMapName() public static méthode

public static SetKeyMapName ( byte str, int len ) : void
str byte
len int
Résultat void

Setup() public static méthode

Locates the archive of built-in keymaps, parses the user-specified keymap from the kernel command line, and installs a default keymap.
public static Setup ( ) : void
Résultat void

WriteKeymaps() public static méthode

public static WriteKeymaps ( ) : void
Résultat void