.. _program_listing_file_src_tal_event.h: Program Listing for File event.h ================================ |exhale_lsh| :ref:`Return to documentation for file ` (``src/tal/event.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #ifdef SOTA_GDEXTENSION #include "godot_cpp/classes/global_constants.hpp" #include "godot_cpp/classes/input_event.hpp" #include "godot_cpp/classes/input_event_mouse.hpp" using InputEvent = godot::InputEvent; using InputEventMouse = godot::InputEventMouse; constexpr godot::MouseButtonMask MOUSE_BUTTON_MASK_LEFT = godot::MouseButtonMask::MOUSE_BUTTON_MASK_LEFT; constexpr godot::MouseButtonMask MOUSE_BUTTON_MASK_RIGHT = godot::MouseButtonMask::MOUSE_BUTTON_MASK_RIGHT; #else #include "core/input/input_event.h" constexpr MouseButtonMask MOUSE_BUTTON_MASK_LEFT = MouseButtonMask::LEFT; constexpr MouseButtonMask MOUSE_BUTTON_MASK_RIGHT = MouseButtonMask::RIGHT; #endif