Files
kaizen/lib/include/gainput/GainputIos.h
Simone 4e42229bdd Squashed 'external/gainput/' content from commit 2be0a50
git-subtree-dir: external/gainput
git-subtree-split: 2be0a50089eafcc6fccb66142180082e48f27f4c
2024-01-22 08:51:55 +01:00

27 lines
620 B
Objective-C

#ifndef GAINPUTIOS_H_
#define GAINPUTIOS_H_
#import <UIKit/UIKit.h>
namespace gainput
{
class InputManager;
}
/// [IOS ONLY] UIKit view that captures touch inputs.
/**
* In order to enable touch input on iOS devices (i.e. make the InputDeviceTouch work),
* an instance of this view has to be attached as a subview to the view of your application.
* Note that, for touches to work in portrait and landscape mode, the subview has to be
* rotated correctly with its parent.
*/
@interface GainputView : UIView
- (id)initWithFrame:(CGRect)frame inputManager:(gainput::InputManager&)inputManager;
@end
#endif