C# Class SharpOS.Kernel.KeyMap

Mostra file Open project: sharpos/SharpOS Class Usage Examples

Public Methods

Method 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

Method Description
GetBuiltinKeyMap ( byte name, int nameLen ) : void*

Method Details

GetBuiltinKeyMap() public static method

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.
return void*

GetBuiltinKeyMap() public static method

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.
return void*

GetBuiltinKeyMap() public static method

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.
return void*

GetBuiltinKeyMap() public static method

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
return void*

GetBuiltinKeyMap() public static method

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.
return void*

GetBuiltinKeyMapsCount() public static method

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

GetCurrentKeyMap() public static method

Gets the keymap currently in use.
public static GetCurrentKeyMap ( ) : void*
return void*

GetCurrentKeyMapName() public static method

public static GetCurrentKeyMapName ( ) : PString8*
return PString8*

GetDefaultTable() public static method

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

GetDefaultTable() public static method

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

GetKeyMask() public static method

Gets the keymask of the installed keymap.
public static GetKeyMask ( ) : byte
return byte

GetKeyMask() public static method

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

GetShiftedTable() public static method

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

GetShiftedTable() public static method

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

GetStateBit() public static method

Gets the state bit of the installed keymap.
public static GetStateBit ( ) : byte
return byte

GetStateBit() public static method

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

SetDirectKeyMap() public static method

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
return void

SetKeyMap() public static method

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

SetKeyMap() public static method

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

SetKeyMap() public static method

public static SetKeyMap ( byte name ) : void
name byte
return void

SetKeyMap() public static method

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

SetKeyMapName() public static method

public static SetKeyMapName ( byte str, int len ) : void
str byte
len int
return void

Setup() public static method

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
return void

WriteKeymaps() public static method

public static WriteKeymaps ( ) : void
return void