Code cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27170 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,16 +10,6 @@
|
|||||||
|
|
||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
#include <Path.h>
|
|
||||||
#include <Directory.h>
|
|
||||||
#include <File.h>
|
|
||||||
|
|
||||||
#include <String.h>
|
|
||||||
#include <Debug.h>
|
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#define DEVICEPATH "/dev/joystick/"
|
#define DEVICEPATH "/dev/joystick/"
|
||||||
#define JOYSTICKPATH "/boot/home/config/settings/joysticks/"
|
#define JOYSTICKPATH "/boot/home/config/settings/joysticks/"
|
||||||
@@ -33,17 +23,22 @@ class _BJoystickTweaker {
|
|||||||
public:
|
public:
|
||||||
_BJoystickTweaker();
|
_BJoystickTweaker();
|
||||||
_BJoystickTweaker(BJoystick &stick);
|
_BJoystickTweaker(BJoystick &stick);
|
||||||
virtual ~_BJoystickTweaker();
|
virtual ~_BJoystickTweaker();
|
||||||
status_t SendIOCT(uint32 op);
|
status_t SendIOCT(uint32 op);
|
||||||
void scan_including_disabled();
|
status_t GetInfo(_joystick_info* info, const char * ref);
|
||||||
status_t get_info(_joystick_info* info, const char * ref);
|
|
||||||
protected:
|
// BeOS R5's joystick pref need these
|
||||||
private:
|
|
||||||
void BuildFromJoystickDesc(char *string, _joystick_info* info);
|
|
||||||
status_t scan_including_disabled(const char* rootPath, BList *list, BEntry *rootEntry = NULL);
|
|
||||||
status_t save_config(const entry_ref * ref = NULL);
|
status_t save_config(const entry_ref * ref = NULL);
|
||||||
|
void scan_including_disabled();
|
||||||
status_t get_info();
|
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
|
#if DEBUG
|
||||||
public:
|
public:
|
||||||
static FILE *sLogFile;
|
static FILE *sLogFile;
|
||||||
|
|||||||
Reference in New Issue
Block a user