objc

NXInputManager.h
Go to the documentation of this file.
1 
5 #pragma once
7 
13 @interface NXInputManager : NXObject {
14 @private
15  id<InputManagerDelegate> _delegate;
16 }
17 
21 + (id)sharedInstance;
22 
31 - (id<InputManagerDelegate>)delegate;
32 
42 - (void)setDelegate:(id<InputManagerDelegate>)delegate;
43 
61 - (void)keyEvent:(id<InputManagerSource>)sender
62  keyCode:(uint16_t)keyCode
63  scanCode:(uint16_t)scanCode;
64 
81 - (void)moveEvent:(id<InputManagerSource>)sender
82  point:(NXPoint)point
83  absolute:(BOOL)absolute
84  slot:(uint8_t)slot;
Foundation framework header.
A protocol that defines the methods for an input manager delegate.
bool BOOL
A Boolean value.
Definition: runtime.h:60
The base class for objects in the Foundation framework.
Definition: NXObject.h:21
A protocol that defines the methods for an input manager source.
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
A structure representing a point in 2D space.
Definition: NXPoint.h:18