-
-
Notifications
You must be signed in to change notification settings - Fork 840
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/share/manipulator/manipulators/mouse_basic/mouse_basic.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#pragma once | ||
|
||
#include "../../types.hpp" | ||
#include "../base.hpp" | ||
|
||
namespace krbn { | ||
namespace manipulator { | ||
namespace manipulators { | ||
class mouse_basic final : public base { | ||
public: | ||
mouse_basic(void) : base() { | ||
} | ||
|
||
virtual ~mouse_basic(void) { | ||
} | ||
|
||
virtual bool already_manipulated(const event_queue::entry& front_input_event) { | ||
return false; | ||
} | ||
|
||
virtual manipulate_result manipulate(event_queue::entry& front_input_event, | ||
const event_queue::queue& input_event_queue, | ||
std::shared_ptr<event_queue::queue> output_event_queue, | ||
absolute_time_point now) { | ||
return manipulate_result::passed; | ||
} | ||
|
||
virtual bool active(void) const { | ||
return false; | ||
} | ||
|
||
virtual bool needs_virtual_hid_pointing(void) const { | ||
return true; | ||
} | ||
|
||
virtual void handle_device_keys_and_pointing_buttons_are_released_event(const event_queue::entry& front_input_event, | ||
event_queue::queue& output_event_queue) { | ||
} | ||
|
||
virtual void handle_device_ungrabbed_event(device_id device_id, | ||
const event_queue::queue& output_event_queue, | ||
absolute_time_point time_stamp) { | ||
} | ||
|
||
virtual void handle_pointing_device_event_from_event_tap(const event_queue::entry& front_input_event, | ||
event_queue::queue& output_event_queue) { | ||
} | ||
}; | ||
} // namespace manipulators | ||
} // namespace manipulator | ||
} // namespace krbn |