xref: /haiku/src/add-ons/input_server/devices/virtualkeyboard/VirtualKeyboardInputDevice.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 /*
2  * Copyright 2014 Freeman Lou <freemanlou2430@yahoo.com>
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef VIRTUAL_KEYBOARD_INPUT_DEVICE_H
6 #define VIRTUAL_KEYBOARD_INPUT_DEVICE_H
7 
8 
9 #include <InputServerDevice.h>
10 #include <Message.h>
11 
12 #include "VirtualKeyboardWindow.h"
13 
14 
15 class VirtualKeyboardInputDevice : public BInputServerDevice {
16 public:
17 										VirtualKeyboardInputDevice();
18 										~VirtualKeyboardInputDevice();
19 	virtual status_t					InitCheck();
20 	virtual	status_t					Start(const char* name, void* cookie);
21 	virtual	status_t					Stop(const char* name, void* cookie);
22 	virtual status_t					Control(const char* name, void* cookie,
23 											uint32 command, BMessage* message);
24 private:
25 			VirtualKeyboardWindow*		fKeyboardWindow;
26 
27 };
28 
29 extern "C" BInputServerDevice* instantiate_input_device();
30 
31 #endif // VIRTUAL_KEYBOARD_INPUT_DEVICE_H
32