From 9ae4d7e586a8fc0a8fe484265c2a17e4e5cf6f70 Mon Sep 17 00:00:00 2001 From: Fredrik Modeen Date: Sat, 23 Aug 2008 11:16:14 +0000 Subject: [PATCH] Code cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27170 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/device/JoystickTweaker.h | 31 ++++++++++-------------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/headers/private/device/JoystickTweaker.h b/headers/private/device/JoystickTweaker.h index e1e806e312..bfa199ccc9 100644 --- a/headers/private/device/JoystickTweaker.h +++ b/headers/private/device/JoystickTweaker.h @@ -10,16 +10,6 @@ #include #include -#include -#include -#include - -#include -#include - -#include -#include -#include #define DEVICEPATH "/dev/joystick/" #define JOYSTICKPATH "/boot/home/config/settings/joysticks/" @@ -33,17 +23,22 @@ class _BJoystickTweaker { public: _BJoystickTweaker(); _BJoystickTweaker(BJoystick &stick); -virtual ~_BJoystickTweaker(); + virtual ~_BJoystickTweaker(); status_t SendIOCT(uint32 op); - void scan_including_disabled(); - status_t get_info(_joystick_info* info, const char * ref); -protected: -private: - void BuildFromJoystickDesc(char *string, _joystick_info* info); - status_t scan_including_disabled(const char* rootPath, BList *list, BEntry *rootEntry = NULL); + status_t GetInfo(_joystick_info* info, const char * ref); + + // BeOS R5's joystick pref need these status_t save_config(const entry_ref * ref = NULL); + void scan_including_disabled(); status_t get_info(); - BJoystick* fJoystick; + +private: + void _BuildFromJoystickDesc(char *string, _joystick_info* info); + status_t _ScanIncludingDisabled(const char* rootPath, BList *list, + BEntry *rootEntry = NULL); + + void _EmpyList(BList *list); + BJoystick* fJoystick; #if DEBUG public: static FILE *sLogFile;