1 | /*
|
---|
2 | * Copyright 2008, Haiku.
|
---|
3 | * Distributed under the terms of the MIT License.
|
---|
4 | *
|
---|
5 | * Authors:
|
---|
6 | * Philippe Saint-Pierre <stpere@gmail.com>
|
---|
7 | */
|
---|
8 | #ifndef CAPS_LOCK_FILTER_H
|
---|
9 | #define CAPS_LOCK_FILTER_H
|
---|
10 |
|
---|
11 |
|
---|
12 | #include <InputServerFilter.h>
|
---|
13 | #include <Looper.h>
|
---|
14 |
|
---|
15 |
|
---|
16 | class CapsLockFilter : public BInputServerFilter {
|
---|
17 | public:
|
---|
18 | CapsLockFilter();
|
---|
19 | virtual ~CapsLockFilter();
|
---|
20 |
|
---|
21 | virtual filter_result Filter(BMessage *message, BList *outList);
|
---|
22 |
|
---|
23 | private:
|
---|
24 | bool _shiftPressed;
|
---|
25 | };
|
---|
26 |
|
---|
27 | #endif /* CAPS_LOCK_FILTER_H */
|
---|