haiku/src/servers/app/InputManager.h
Axel Dörfler 26b02ddc80 The input_server is now notified when the screen resolution is changed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 16:22:06 +00:00

39 lines
730 B
C++

/*
* Copyright 2005, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, axeld@pinc-software.de
*/
#ifndef INPUT_MANAGER_H
#define INPUT_MANAGER_H
#include <Locker.h>
#include <ObjectList.h>
class EventStream;
class InputManager : public BLocker {
public:
InputManager();
virtual ~InputManager();
void UpdateScreenBounds(BRect bounds);
bool AddStream(EventStream* stream);
void RemoveStream(EventStream* stream);
EventStream* GetStream();
void PutStream(EventStream* stream);
private:
BObjectList<EventStream> fFreeStreams;
BObjectList<EventStream> fUsedStreams;
};
extern InputManager* gInputManager;
#endif /* INPUT_MANAGER_H */