SDXFrameWork  0.13
SDXFrameWork
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Public Member Functions | Public Attributes | Friends | List of all members
SDX::Gesture Class Reference

タッチ操作の各種ジェスチャー. More...

#include <Gesture.h>

Public Member Functions

void Update ()
 状態の更新. More...
 
void Reset ()
 状態をリセット. More...
 

Public Attributes

bool on = false
 何らかのジェスチャーが発生した時にtrue
 
double rotate = 0
 回転ジェスチャー
 
double pinche = 0
 ピンチ操作
 
double x = 0
 ジェスチャー操作の中心点
 
double y = 0
 ジェスチャー操作の中心点
 
int fingerCount = 0
 ジェスチャーに使った指の本数
 

Friends

class Input
 

Detailed Description

タッチ操作の各種ジェスチャー.

//Copyright © 2014 SDXFramework
//[License]GNU Affero General Public License, version 3
//[Contact]http://sourceforge.jp/projects/dxframework/
//ライブラリの初期化等を行う
bool SampleGesture()
{
using namespace SDX;
System::Initialise("sample", 640, 480);//ウィンドウタイトルを指定して、初期化する
while (System::Update())//ウィンドウの更新や、入力の更新等を行う
{
if (Input::key.Return.on){ break;}//Enterで終了
}
System::End();//ライブラリの終了処理を行う
return true;
}

Member Function Documentation

void SDX::Gesture::Update ( )
inline

状態の更新.

void SDX::Gesture::Reset ( )
inline

状態をリセット.