示例#1
0
MultitouchInputDevice::MultitouchInputDevice()
    : IInputDevice(EXTRACT_INPUTDEVICE_CLASSNAME(MultitouchInputDevice))
{
    m_TouchArea = ConfigMgr::get()->getSizeOption("touch", "area");
    if (m_TouchArea.x == 0) {
        m_TouchArea = Player::get()->getScreenResolution();
    }
    m_TouchOffset = ConfigMgr::get()->getSizeOption("touch", "offset");
}
示例#2
0
TestHelper::TestHelper()
    : IInputDevice(EXTRACT_INPUTDEVICE_CLASSNAME(TestHelper))
{
}