From 439d3bfb0f8786d3c61f797c1b4cfed613dea016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 29 Jul 2004 16:26:04 +0000 Subject: [PATCH] now unused files git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8511 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/input/Input.h | 88 ---------------------------- src/servers/input/InputServerTypes.h | 25 -------- 2 files changed, 113 deletions(-) delete mode 100644 src/servers/input/Input.h delete mode 100644 src/servers/input/InputServerTypes.h diff --git a/src/servers/input/Input.h b/src/servers/input/Input.h deleted file mode 100644 index 263a94d2f0..0000000000 --- a/src/servers/input/Input.h +++ /dev/null @@ -1,88 +0,0 @@ -/****************************************************************************** -/ -/ File: Input.h -/ -/ Description: Functions and class to manage input devices. -/ -/ Copyright 1998, Be Incorporated, All Rights Reserved. -/ -******************************************************************************/ - -#ifndef _INPUT_H -#define _INPUT_H - -#include -#include -#include - - -enum input_method_op { - B_INPUT_METHOD_STARTED = 0, - B_INPUT_METHOD_STOPPED = 1, - B_INPUT_METHOD_CHANGED = 2, - B_INPUT_METHOD_LOCATION_REQUEST = 3 -}; - - -enum input_device_type { - B_POINTING_DEVICE = 0, - B_KEYBOARD_DEVICE = 1, - B_UNDEFINED_DEVICE = 2 -}; - -/* - what == B_INPUT_DEVICES_CHANGED - FindString("name", name_of_device); - FindInt32("opcode", input_device_notification); -*/ - -enum input_device_notification { - B_INPUT_DEVICE_ADDED = 0x0001, - B_INPUT_DEVICE_STARTED = 0x0002, - B_INPUT_DEVICE_STOPPED = 0x0004, - B_INPUT_DEVICE_REMOVED = 0x0008 -}; - - -class BInputDevice; - - -_IMPEXP_BE BInputDevice* find_input_device(const char *name); -_IMPEXP_BE status_t get_input_devices(BList *list); -_IMPEXP_BE status_t watch_input_devices(BMessenger target, bool start); - - -class BInputDevice { -public: - ~BInputDevice(); - - const char* Name() const; - input_device_type Type() const; - bool IsRunning() const; - - status_t Start(); - status_t Stop(); - status_t Control(uint32 code, - BMessage *message); - - static status_t Start(input_device_type type); - static status_t Stop(input_device_type type); - static status_t Control(input_device_type type, - uint32 code, - BMessage *message); - -private: - friend BInputDevice* find_input_device(const char *name); - friend status_t get_input_devices(BList *list); - - BInputDevice(); - void set_name_and_type(const char *name, - input_device_type type); - - char* fName; - input_device_type fType; - uint32 _reserved[4]; -}; - - -#endif diff --git a/src/servers/input/InputServerTypes.h b/src/servers/input/InputServerTypes.h deleted file mode 100644 index 7d7b72b5b7..0000000000 --- a/src/servers/input/InputServerTypes.h +++ /dev/null @@ -1,25 +0,0 @@ -#define SET_METHOD 'stmd' -#define GET_MOUSE_TYPE 'gtmt' -#define SET_MOUSE_TYPE 'stmt' -#define GET_MOUSE_ACCELERATION 'gtma' -#define SET_MOUSE_ACCELERATION 'stma' -#define GET_KEY_REPEAT_DELAY 'gkrd' -#define SET_KEY_REPEAT_DELAY 'skrd' -#define GET_KEY_INFO 'ktki' -#define GET_MODIFIERS 'gtmf' -#define SET_MODIFIER_KEY 'smky' -#define SET_KEYBOARD_LOCKS 'skbl' -#define GET_MOUSE_SPEED 'gtms' -#define SET_MOUSE_SPEED 'stms' -#define SET_MOUSE_POSITION 'stmp' -#define GET_MOUSE_MAP 'gtmm' -#define SET_MOUSE_MAP 'stmm' -#define GET_KEYBOARD_ID 'gkbi' -#define GET_CLICK_SPEED 'gtcs' -#define SET_CLICK_SPEED 'stcs' -#define GET_KEY_REPEAT_RATE 'gkrr' -#define SET_KEY_REPEAT_RATE 'skrr' -#define GET_KEY_MAP 'gtkm' -#define SET_KEY_MAP 'stkm' -#define FOCUS_IM_AWARE_VIEW 'fiav' -#define UNFOCUS_IM_AWARE_VIEW 'uiav'