usb_ecm: Use the current configuration instead of a fixed one.
[haiku.git] / src / servers / app / InputManager.h
blob2cea81f698164a5ce18d344084179bf03263b076
1 /*
2 * Copyright 2005, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 */
8 #ifndef INPUT_MANAGER_H
9 #define INPUT_MANAGER_H
12 #include <Locker.h>
13 #include <ObjectList.h>
16 class EventStream;
18 class InputManager : public BLocker {
19 public:
20 InputManager();
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);
31 private:
32 BObjectList<EventStream> fFreeStreams;
33 BObjectList<EventStream> fUsedStreams;
36 extern InputManager* gInputManager;
38 #endif /* INPUT_MANAGER_H */