2 #include <Multimedia/Key.h>
3 #include <Multimedia/Window.h>
11 void Position(
double X座標,
double Y座標)
13 const double aspA = Window::Single().aspect;
21 else if (aspA > aspB){
23 double rate = aspA / aspB;
24 double pos = (X座標 - (rate - 1) / rate / 2) * rate;
30 double rate = aspB / aspA;
31 double pos = (Y座標 - (rate - 1) / rate / 2) * rate;
77 void Position(
double X座標 ,
double Y座標)
79 const double aspA = Window::Single().aspect;
86 }
else if (aspA > aspB){
88 double rate = aspA / aspB;
89 double pos = (X座標 - (rate - 1) / rate / 2) * rate;
94 double rate = aspB / aspA;
95 double pos = ( Y座標 - (rate - 1) / rate / 2) * rate;
112 unsigned int holdCount = 0;
132 on = (!hold && press);
133 off = (hold && !press);
static int GetWidth()
ウィンドウ幅の取得.
Definition: Window.h:67
static int GetHeight()
ウィンドウ高さの取得.
Definition: Window.h:73
void Reset()
状態のリセット.
Definition: Touch.h:115
void Update()
状態の更新.
Definition: Touch.h:130