
unit KeyBoard
{
	//[i] linksysconst_uint8 ID;
	public const uint8 ID = 0;
	
	//[i] linkconst_int32_0.5_Γλ MaxTick;
	public const int32 MaxTick = 5;
	
	//[i] var_uint8 OS_EventFlag;
	public uint8 OS_EventFlag;
	//[i] event press_event;
	//[i] event keep_event;
	//[i] event up_event;
	
	//---------------------------------------------------
	//³υΚΌ»―
	//[i] function_void OS_init;
	public void OS_init()
	{
		OS_EventFlag = 0;
	}
	//---------------------------------------------------
	//[i] function_void Open;
	public void Open()
	{
		#.linker.SetValue( ID, 0x22, 0 );
	}
	//---------------------------------------------------
	//[i] function_void Close;
	public void Close()
	{
		#.linker.SetValue( ID, 0x23, 0 );
	}
	//---------------------------------------------------
	//[i] function_void SetText Cstring;
	public void SetText( [#.code uint16*?] string )
	{
		#.linker.SetString( ID, 0x10, string );
	}
	//---------------------------------------------------
	//[i] function_void SetMaxTick;
	public void SetMaxTick()
	{
		#.linker.SetValue( ID, 0x20, (uint)MaxTick );
	}
	//---------------------------------------------------
	//[i] function_void SetKIgnore int32;
	public void SetKIgnore( int32 i )
	{
		#.linker.SetValue( ID, 0x21, (uint)i );
	}
}








