Add input events (#18)
* MacOSX with input events and mfb_set_viewport * Windows with input events and mfb_set_viewport * Minor changes in macosx and windows * X11 with input and mfb_set_viewport * Minor changes on X11 * Fix bug in X11 resize event * Fix bug in windows resize * added scale image to X11 * Added stretch_image with & without bilinear interpolation * moved MiniFB_internal.h * Added wayland events * minor changes * unify a bit the window structs * More work on wayland * Added cmake file * minor fix on windows * modified test * Fix on wayland. Unset wayland as default for linux * Use stdbool instead of our own macro eBool Remove prefix e from all enums * Remove _ex sufix in common files * merge X11MiniFB_ex.c into X11MiniFB.c * Merge WaylandMiniFB_ex.c into WaylandMiniFB.c * Add user_data to callbacks * Merge WinMiniFB_ex.c into WinMiniFB.c * Some minor changes on Windows * Fix bug on Wayland * Added mfb_get_key_name * keyboard_default on all platforms
This commit is contained in:

committed by
Daniel Collin

parent
d6a52459ef
commit
8b6148cf97
File diff suppressed because it is too large
Load Diff
57
src/wayland/WaylandWindowData.h
Normal file
57
src/wayland/WaylandWindowData.h
Normal file
@ -0,0 +1,57 @@
|
||||
#pragma once
|
||||
|
||||
#include <MiniFB_enums.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct wl_display;
|
||||
struct wl_registry;
|
||||
struct wl_compositor;
|
||||
struct wl_shell;
|
||||
struct wl_seat;
|
||||
struct wl_keyboard;
|
||||
struct wl_pointer;
|
||||
struct wl_callback;
|
||||
struct wl_shm;
|
||||
struct wl_shm_pool;
|
||||
struct wl_surface;
|
||||
struct wl_shell_surface;
|
||||
struct wl_buffer;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
struct wl_display *display;
|
||||
struct wl_registry *registry;
|
||||
struct wl_compositor *compositor;
|
||||
struct wl_shell *shell;
|
||||
struct wl_seat *seat;
|
||||
struct wl_keyboard *keyboard;
|
||||
|
||||
struct wl_pointer *pointer;
|
||||
struct wl_cursor_theme *cursor_theme;
|
||||
struct wl_cursor *default_cursor;
|
||||
struct wl_surface *cursor_surface;
|
||||
|
||||
struct wl_shm *shm;
|
||||
struct wl_shm_pool *shm_pool;
|
||||
struct wl_surface *surface;
|
||||
struct wl_shell_surface *shell_surface;
|
||||
|
||||
uint32_t seat_version;
|
||||
uint32_t shm_format;
|
||||
uint32_t *shm_ptr;
|
||||
|
||||
uint32_t window_width;
|
||||
uint32_t window_height;
|
||||
uint32_t dst_offset_x;
|
||||
uint32_t dst_offset_y;
|
||||
uint32_t dst_width;
|
||||
uint32_t dst_height;
|
||||
|
||||
struct wl_buffer *draw_buffer;
|
||||
uint32_t buffer_width;
|
||||
uint32_t buffer_height;
|
||||
uint32_t buffer_stride;
|
||||
|
||||
uint32_t mod_keys;
|
||||
bool close;
|
||||
} SWindowData;
|
Reference in New Issue
Block a user