2 * Copyright 2005, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
8 #ifndef INPUT_MANAGER_H
9 #define INPUT_MANAGER_H
13 #include <ObjectList.h>
18 class InputManager
: public BLocker
{
21 virtual ~InputManager();
23 void UpdateScreenBounds(BRect bounds
);
25 bool AddStream(EventStream
* stream
);
26 void RemoveStream(EventStream
* stream
);
28 EventStream
* GetStream();
29 void PutStream(EventStream
* stream
);
32 BObjectList
<EventStream
> fFreeStreams
;
33 BObjectList
<EventStream
> fUsedStreams
;
36 extern InputManager
* gInputManager
;
38 #endif /* INPUT_MANAGER_H */