コード例 #1
0
    void HandleTouch(MessageTouch data)
    {
        int index = data.id * 2;

        axes[AXIS_TOUCH_X + index] = (float)data.x / 500.0f - 1.0f;
        axes[AXIS_TOUCH_Y + index] = (float)data.y / 500.0f - 1.0f;
    }
コード例 #2
0
 void HandleTouch(MessageTouch data)
 {
     int index = data.id * 2;
     axes[AXIS_TOUCH_X + index] = (float)data.x / 500.0f - 1.0f;
     axes[AXIS_TOUCH_Y + index] = (float)data.y / 500.0f - 1.0f;
 }