1 /* 2 * Copyright 2006, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Jérôme Duval 7 * 8 * References: 9 * Google search "technic doc genius" , http://www.bebits.com/app/2152 10 */ 11 12 #ifndef __EASYPENINPUTDEVICE_H 13 #define __EASYPENINPUTDEVICE_H 14 15 #include <InputServerDevice.h> 16 #include <List.h> 17 #include <stdio.h> 18 19 struct tablet_device; 20 21 class EasyPenInputDevice : public BInputServerDevice { 22 public: 23 EasyPenInputDevice(); 24 ~EasyPenInputDevice(); 25 26 virtual status_t InitCheck(); 27 28 virtual status_t Start(const char *name, void *cookie); 29 virtual status_t Stop(const char *name, void *cookie); 30 31 virtual status_t Control(const char *name, void *cookie, 32 uint32 command, BMessage *message); 33 private: 34 static int32 DeviceWatcher(void *arg); 35 36 BList fDevices; 37 bigtime_t fClickSpeed; 38 #ifdef DEBUG 39 public: 40 static FILE *sLogFile; 41 #endif 42 }; 43 44 extern "C" BInputServerDevice *instantiate_input_device(); 45 46 #endif 47 48