ppsspp/ios/Controls.h

19 lines
577 B
C
Raw Normal View History

2024-05-22 09:18:03 +00:00
#pragma once
#import <GameController/GameController.h>
2024-05-22 08:38:40 +00:00
// Code extracted from ViewController.mm, in order to modularize
// and share it between multiple view controllers.
2024-05-22 09:36:52 +00:00
bool SetupController(GCController *controller);
struct TouchTracker {
void Began(NSSet *touches, UIView *view);
void Moved(NSSet *touches, UIView *view);
void Ended(NSSet *touches, UIView *view);
void Cancelled(NSSet *touches, UIView *view);
private:
void SendTouchEvent(float x, float y, int code, int pointerId);
int ToTouchID(UITouch *uiTouch, bool allowAllocate);
UITouch *touches_[10]{};
};