diff options
Diffstat (limited to 'floormat')
| -rw-r--r-- | floormat/events.hpp | 6 | ||||
| -rw-r--r-- | floormat/main.hpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/floormat/events.hpp b/floormat/events.hpp index 44e54a05..c7d36379 100644 --- a/floormat/events.hpp +++ b/floormat/events.hpp @@ -16,7 +16,7 @@ struct mouse_button_event final { Vector2i position; int mods = 0; mouse_button button = mouse_button_none; - std::uint8_t click_count = 0; + uint8_t click_count = 0; }; struct mouse_move_event final { @@ -37,13 +37,13 @@ struct text_input_event final { struct text_editing_event final { Containers::StringView text; - std::int32_t start = 0, length = 0; + int32_t start = 0, length = 0; }; struct key_event final { int key = 0; int mods = 0; - std::uint8_t is_repeated = false; + uint8_t is_repeated = false; }; union alignas(alignof(void*)) any_event { diff --git a/floormat/main.hpp b/floormat/main.hpp index 3fbef522..b80ac289 100644 --- a/floormat/main.hpp +++ b/floormat/main.hpp @@ -23,7 +23,7 @@ struct anim_mesh; struct floormat_main { - struct draw_bounds final { std::int16_t minx, maxx, miny, maxy; }; + struct draw_bounds final { int16_t minx, maxx, miny, maxy; }; struct meshes final { floor_mesh& floor; wall_mesh& wall; @@ -55,8 +55,8 @@ struct floormat_main virtual ArrayView<const clickable> clickable_scenery() const noexcept = 0; virtual ArrayView<clickable> clickable_scenery() noexcept = 0; - virtual void set_cursor(std::uint32_t cursor) noexcept = 0; - virtual std::uint32_t cursor() const noexcept = 0; + virtual void set_cursor(uint32_t cursor) noexcept = 0; + virtual uint32_t cursor() const noexcept = 0; virtual global_coords pixel_to_tile(Vector2d position) const noexcept = 0; virtual Vector2d pixel_to_tile_(Vector2d position) const noexcept = 0; |
