diff options
| author | srdusr <[email protected]> | 2025-08-24 00:44:00 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2025-08-24 00:44:00 +0200 |
| commit | 72e787a706d372c9a92e424e9b13ece929cb2bce (patch) | |
| tree | 237ea5559a63474c2539761b6ce1015fc31dc1da /legacy-cpp/src/input | |
| parent | 2a3fdcf2faf6cadb1fa49ed7c4b2963b554b0724 (diff) | |
| download | srdwm-72e787a706d372c9a92e424e9b13ece929cb2bce.tar.gz srdwm-72e787a706d372c9a92e424e9b13ece929cb2bce.zip | |
Remove the stale legacy-cpp implementation
The Rust rewrite (crates/) has fully superseded it - keeping both around
was actively misleading (main looked like it still shipped a C++ build),
and nothing here still depends on it.
Diffstat (limited to 'legacy-cpp/src/input')
| -rw-r--r-- | legacy-cpp/src/input/input_handler.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/legacy-cpp/src/input/input_handler.h b/legacy-cpp/src/input/input_handler.h deleted file mode 100644 index 2f35608..0000000 --- a/legacy-cpp/src/input/input_handler.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef SRDWM_INPUT_HANDLER_H -#define SRDWM_INPUT_HANDLER_H - -#include <memory> - -// Define basic event structures (these will need more detail later) -struct KeyboardEvent { - int key_code; - // Add modifiers, state (press/release) -}; - -struct MouseEvent { - enum class Type { Press, Release, Motion }; - Type type; - int button; // Valid for Press/Release - int x, y; - // Add modifiers -}; - -class InputHandler { -public: - virtual ~InputHandler() = default; - - // Pure virtual methods for handling events - virtual void handle_key_press(const KeyboardEvent& event) = 0; - virtual void handle_key_release(const KeyboardEvent& event) = 0; - virtual void handle_mouse_button_press(const MouseEvent& event) = 0; - virtual void handle_mouse_button_release(const MouseEvent& event) = 0; - virtual void handle_mouse_motion(const MouseEvent& event) = 0; - - // Other potential input-related methods - // virtual void initialize() = 0; - // virtual void shutdown() = 0; -}; - -#endif // SRDWM_INPUT_HANDLER_H |