📄 tremote.c.svn-base
字号:
/**
* This code and information is part of Trident DPTV API (TDAPI)
*
* Copyright (C) Trident Multimedia Technologies (Shanghai) Co., Ltd.
* 2002 - 2003 All rights reserved.
*
* This file provides functions for TV or demoboard remote controller.
*
* Revision:
* 03/04/2004 Modify RC5 part(decode & repeat) by Max and Joy
* 04/18/2003 Added repeat key support by Archie
* 08/01/2002 Created by Rick, York, Joy and Archie
*
*/
#include "tdefs.h"
#include "tio.h"
#include "tutils.h"
#include "tvkey.h"
#include "tRemote.h"
#include "thilevel.h"
Gdata RemoteStruct t_RemoteData;
extern Gdata RemoteControllerDriver RamPtr c_RemoteControllerDriver;
#ifdef _NEW_REPEATKEY_FUNC_
GBool t_bNewKey = 0;
GBool t_bRemoteKey = _FALSE_;
Void tdSetFastRepeatKeyFlag(Bool b)
{
g_KeyInfo.bFastRepeatKeyEnable = b;
if(b)g_KeyInfo.bSlowRepeatKeyEnable = _FALSE_;
}
Void tdSetSlowRepeatKeyFlag(Bool b)
{
g_KeyInfo.bSlowRepeatKeyEnable = b;
if(b)g_KeyInfo.bFastRepeatKeyEnable = _FALSE_;
}
Bool tdIsKeyboardDown(Void)
{
return g_KeyInfo.bKeyboardDown;
}
Bool tdIsRepeatKeyDown(Void)
{
return g_KeyInfo.bRepeatKeyDown;
}
Bool tdIsRemoteKeyDown(Void)
{
return g_KeyInfo.bRemoteKeyDown;
}
#endif
Void tdSetKeyStatusUpFlag(Bool b)
{
g_KeyInfo.bKeyStatusUpEnable = b;
}
Bool tdIsKeyStatusUp(Byte ucVirtualKey)
{
return (ucVirtualKey & _VK_STATUS_UP_);
}
Byte tdGetKeyCode(Byte ucVirtualKey)
{
return (ucVirtualKey & (~_VK_STATUS_UP_));
}
Void tdRemoteService(Void)
{
#ifndef _WIN32
c_RemoteControllerDriver->fnRemoteService();
#endif
}
Void tdIR1msTimer(Void)
{
#ifndef _WIN32
c_RemoteControllerDriver->fnIR1msTimer();
#endif
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -