| 
									
										
										
										
											2016-12-19 17:55:09 +00:00
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef ButtonCode_t KeyCode; | 
					
						
							|  |  |  | typedef ButtonCode_t MouseCode; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | enum MouseCodeState_t { | 
					
						
							|  |  |  | 	BUTTON_RELEASED = 0, | 
					
						
							|  |  |  | 	BUTTON_PRESSED, | 
					
						
							|  |  |  | 	BUTTON_DOUBLECLICKED | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class IInputInternal { | 
					
						
							|  |  |  | 	public: | 
					
						
							| 
									
										
										
										
											2016-12-20 20:39:21 +00:00
										 |  |  | 		void SetKeyCodeState(KeyCode code, bool down) { | 
					
						
							|  |  |  | 			GetVirtualFunction<void(*)(IInputInternal*, KeyCode, bool)>(this, 83)(this, code, down); | 
					
						
							| 
									
										
										
										
											2016-12-19 17:55:09 +00:00
										 |  |  | 		} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		void SetMouseCodeState(MouseCode code, MouseCodeState_t state) { | 
					
						
							|  |  |  | 			GetVirtualFunction<void(*)(IInputInternal*, MouseCode, MouseCodeState_t)>(this, 84)(this, code, state); | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2016-12-20 20:09:50 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern IInputInternal* inputinternal; |