Squashed 'external/gainput/' content from commit 2be0a50
git-subtree-dir: external/gainput git-subtree-split: 2be0a50089eafcc6fccb66142180082e48f27f4c
This commit is contained in:
26
lib/include/gainput/GainputIos.h
Normal file
26
lib/include/gainput/GainputIos.h
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user