|
39 | 39 | import com.jme3.input.event.TouchEvent; |
40 | 40 |
|
41 | 41 | /** |
42 | | - * An abstract adapter class for {@link RawInputListener}. |
43 | | - * |
44 | | - * This class provides empty implementations for all methods in the |
45 | | - * {@link RawInputListener} interface, making it easier to create |
46 | | - * custom listeners by extending this class and overriding only the |
47 | | - * methods of interest. |
| 42 | + * An abstract adapter class for {@link RawInputListener}. |
| 43 | + * |
| 44 | + * This class provides empty implementations for all methods in the |
| 45 | + * {@link RawInputListener} interface, making it easier to create custom |
| 46 | + * listeners by extending this class and overriding only the methods of |
| 47 | + * interest. |
48 | 48 | */ |
49 | 49 | public abstract class RawInputListenerAdapter implements RawInputListener { |
50 | | - |
| 50 | + |
51 | 51 | /** |
52 | 52 | * Constructs a {@code RawInputListenerAdapter}. |
53 | 53 | */ |
54 | | - protected RawInputListenerAdapter() {} |
| 54 | + protected RawInputListenerAdapter() { |
| 55 | + } |
55 | 56 |
|
56 | | - @Override |
57 | | - public void beginInput() { |
58 | | - // No-op implementation |
59 | | - } |
| 57 | + @Override |
| 58 | + public void beginInput() { |
| 59 | + // No-op implementation |
| 60 | + } |
60 | 61 |
|
61 | | - @Override |
62 | | - public void endInput() { |
63 | | - // No-op implementation |
64 | | - } |
| 62 | + @Override |
| 63 | + public void endInput() { |
| 64 | + // No-op implementation |
| 65 | + } |
65 | 66 |
|
66 | | - @Override |
67 | | - public void onJoyAxisEvent(JoyAxisEvent evt) { |
68 | | - // No-op implementation |
69 | | - } |
| 67 | + @Override |
| 68 | + public void onJoyAxisEvent(JoyAxisEvent evt) { |
| 69 | + // No-op implementation |
| 70 | + } |
70 | 71 |
|
71 | | - @Override |
72 | | - public void onJoyButtonEvent(JoyButtonEvent evt) { |
73 | | - // No-op implementation |
74 | | - } |
| 72 | + @Override |
| 73 | + public void onJoyButtonEvent(JoyButtonEvent evt) { |
| 74 | + // No-op implementation |
| 75 | + } |
75 | 76 |
|
76 | | - @Override |
77 | | - public void onMouseMotionEvent(MouseMotionEvent evt) { |
78 | | - // No-op implementation |
79 | | - } |
| 77 | + @Override |
| 78 | + public void onMouseMotionEvent(MouseMotionEvent evt) { |
| 79 | + // No-op implementation |
| 80 | + } |
80 | 81 |
|
81 | | - @Override |
82 | | - public void onMouseButtonEvent(MouseButtonEvent evt) { |
83 | | - // No-op implementation |
84 | | - } |
| 82 | + @Override |
| 83 | + public void onMouseButtonEvent(MouseButtonEvent evt) { |
| 84 | + // No-op implementation |
| 85 | + } |
85 | 86 |
|
86 | | - @Override |
87 | | - public void onKeyEvent(KeyInputEvent evt) { |
88 | | - // No-op implementation |
89 | | - } |
| 87 | + @Override |
| 88 | + public void onKeyEvent(KeyInputEvent evt) { |
| 89 | + // No-op implementation |
| 90 | + } |
90 | 91 |
|
91 | | - @Override |
92 | | - public void onTouchEvent(TouchEvent evt) { |
93 | | - // No-op implementation |
94 | | - } |
| 92 | + @Override |
| 93 | + public void onTouchEvent(TouchEvent evt) { |
| 94 | + // No-op implementation |
| 95 | + } |
95 | 96 |
|
96 | 97 | } |
0 commit comments