/* * Copyright 2014 Freeman Lou * All rights reserved. Distributed under the terms of the MIT license. */ #ifndef VIRTUAL_KEYBOARD_INPUT_DEVICE_H #define VIRTUAL_KEYBOARD_INPUT_DEVICE_H #include #include #include "VirtualKeyboardWindow.h" class VirtualKeyboardInputDevice : public BInputServerDevice { public: VirtualKeyboardInputDevice(); ~VirtualKeyboardInputDevice(); virtual status_t InitCheck(); virtual status_t Start(const char* name, void* cookie); virtual status_t Stop(const char* name, void* cookie); virtual status_t Control(const char* name, void* cookie, uint32 command, BMessage* message); private: VirtualKeyboardWindow* fKeyboardWindow; }; extern "C" BInputServerDevice* instantiate_input_device(); #endif // VIRTUAL_KEYBOARD_INPUT_DEVICE_H