src/video/wayland/SDL_waylandevents_c.h
author Ryan C. Gordon
Tue, 07 Apr 2020 13:30:46 -0400
changeset 13701 3cc182fa6110
parent 13422 fd6a12de91c7
child 13805 4709c1dfeabb
permissions -rw-r--r--
wayland: Support wayland compositors with wl_seat version < 5 (thanks, Nia!).

Fixes Bugzilla #5074.
gabomdq@8062
     1
/*
gabomdq@8062
     2
  Simple DirectMedia Layer
slouken@13422
     3
  Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
gabomdq@8062
     4
gabomdq@8062
     5
  This software is provided 'as-is', without any express or implied
gabomdq@8062
     6
  warranty.  In no event will the authors be held liable for any damages
gabomdq@8062
     7
  arising from the use of this software.
gabomdq@8062
     8
gabomdq@8062
     9
  Permission is granted to anyone to use this software for any purpose,
gabomdq@8062
    10
  including commercial applications, and to alter it and redistribute it
gabomdq@8062
    11
  freely, subject to the following restrictions:
gabomdq@8062
    12
gabomdq@8062
    13
  1. The origin of this software must not be misrepresented; you must not
gabomdq@8062
    14
     claim that you wrote the original software. If you use this software
gabomdq@8062
    15
     in a product, an acknowledgment in the product documentation would be
gabomdq@8062
    16
     appreciated but is not required.
gabomdq@8062
    17
  2. Altered source versions must be plainly marked as such, and must not be
gabomdq@8062
    18
     misrepresented as being the original software.
gabomdq@8062
    19
  3. This notice may not be removed or altered from any source distribution.
gabomdq@8062
    20
*/
gabomdq@8062
    21
gabomdq@8104
    22
#include "../../SDL_internal.h"
gabomdq@8062
    23
slouken@11382
    24
#ifndef SDL_waylandevents_h_
slouken@11382
    25
#define SDL_waylandevents_h_
gabomdq@8062
    26
gabomdq@8062
    27
#include "SDL_waylandvideo.h"
gabomdq@8062
    28
#include "SDL_waylandwindow.h"
slouken@10583
    29
#include "SDL_waylanddatamanager.h"
slouken@10583
    30
slouken@10583
    31
struct SDL_WaylandInput;
gabomdq@8062
    32
gabomdq@8062
    33
extern void Wayland_PumpEvents(_THIS);
gabomdq@8062
    34
icculus@13701
    35
extern void Wayland_display_add_input(SDL_VideoData *d, uint32_t id, uint32_t version);
gabomdq@8062
    36
extern void Wayland_display_destroy_input(SDL_VideoData *d);
gabomdq@8062
    37
slouken@10583
    38
extern SDL_WaylandDataDevice* Wayland_get_data_device(struct SDL_WaylandInput *input);
slouken@10583
    39
slouken@10304
    40
extern void Wayland_display_add_pointer_constraints(SDL_VideoData *d, uint32_t id);
slouken@10304
    41
extern void Wayland_display_destroy_pointer_constraints(SDL_VideoData *d);
slouken@10304
    42
slouken@10304
    43
extern int Wayland_input_lock_pointer(struct SDL_WaylandInput *input);
slouken@10304
    44
extern int Wayland_input_unlock_pointer(struct SDL_WaylandInput *input);
slouken@10304
    45
slouken@10304
    46
extern void Wayland_display_add_relative_pointer_manager(SDL_VideoData *d, uint32_t id);
slouken@10304
    47
extern void Wayland_display_destroy_relative_pointer_manager(SDL_VideoData *d);
slouken@10304
    48
slouken@11382
    49
#endif /* SDL_waylandevents_h_ */
gabomdq@8062
    50
gabomdq@8062
    51
/* vi: set ts=4 sw=4 expandtab: */