本文整理汇总了C++中Touch::SetMultipointEnabled方法的典型用法代码示例。如果您正苦于以下问题:C++ Touch::SetMultipointEnabled方法的具体用法?C++ Touch::SetMultipointEnabled怎么用?C++ Touch::SetMultipointEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Touch
的用法示例。
在下文中一共展示了Touch::SetMultipointEnabled方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnInitializing
result CCEGLView::OnInitializing(void)
{
result r = E_SUCCESS;
AddTouchEventListener(*this);
Touch touch;
touch.SetMultipointEnabled(*this, true);
m_pKeypad = new Keypad();
m_pKeypad->Construct(KEYPAD_STYLE_NORMAL, KEYPAD_MODE_ALPHA);
m_pKeypad->AddTextEventListener(*this);
Rectangle rc = GetBounds();
if ((rc.width == 480 && rc.height == 720)
|| (rc.width == 720 && rc.height == 480))
{
m_bNotHVGA = false;
m_sSizeInPixel.width = rc.width / 1.5f;
m_sSizeInPixel.height = rc.height / 1.5f;
}
else
{
m_bNotHVGA = true;
m_sSizeInPixel.width = rc.width;
m_sSizeInPixel.height = rc.height;
}
// calculate the factor and the rect of viewport
m_fScreenScaleFactor = MIN((float)m_sSizeInPixel.width / m_sSizeInPoint.width,
(float)m_sSizeInPixel.height / m_sSizeInPoint.height);
//CCLOG("rc.width = %d, rc.height = %d, m_fScreenScaleFactor = %f", rc.width, rc.height, m_fScreenScaleFactor);
resize(m_sSizeInPoint.width, m_sSizeInPoint.height);
return r;
}
示例2: OnInitializing
result BadaAppForm::OnInitializing(void) {
logEntered();
SetOrientation(ORIENTATION_LANDSCAPE);
AddOrientationEventListener(*this);
AddTouchEventListener(*this);
AddKeyEventListener(*this);
Touch touch;
touch.SetMultipointEnabled(*this, true);
// set focus to enable receiving key events
SetFocusable(true);
SetFocus();
return E_SUCCESS;
}
示例3:
result
ImageViewer::OnInitializing()
{
SetFormBackEventListener(this);
__pGallery = static_cast<Gallery*>(GetControl(L"IDC_GALLERY1"));
if(!__pGallery)
{
AppLog("Gallery Control does not exist");
return E_FAILURE;
}
__pGallery->SetBackgroundColor(__bgColor);
__pGallery->SetItemProvider(*this);
Touch touch;
touch.SetMultipointEnabled(*__pGallery, true);
GetFooter()->AddActionEventListener(*this);
return E_SUCCESS;
}