* Cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28240 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-10-19 13:17:29 +00:00
parent bfc4ee026d
commit ab42853558
2 changed files with 49 additions and 44 deletions
+25 -26
View File
@@ -1,12 +1,12 @@
/*
* Copyright (c) 2008, Haiku, Inc.
* Copyright 2008, Haiku, Inc.
* Distributed under the terms of the MIT license.
*
*/
#ifndef _INPUT_H
#define _INPUT_H
#include <BeBuild.h>
#include <Messenger.h>
#include <SupportDefs.h>
@@ -45,33 +45,32 @@ status_t watch_input_devices(BMessenger target, bool start);
class BInputDevice {
public:
~BInputDevice();
~BInputDevice();
const char* Name() const;
input_device_type Type() const;
bool IsRunning() const;
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,
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 _SetNameAndType(const char* name,
input_device_type type);
char* fName;
input_device_type fType;
uint32 _reserved[4];
private:
friend BInputDevice* find_input_device(const char* name);
friend status_t get_input_devices(BList* list);
BInputDevice();
void _SetNameAndType(const char* name,
input_device_type type);
char* fName;
input_device_type fType;
uint32 _reserved[4];
};
#endif
#endif // _INPUT_H