mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 23:18:29 +00:00
@@ -4185,6 +4185,36 @@ extern "C" {
|
||||
*/
|
||||
#define SDL_HINT_ASSERT "SDL_ASSERT"
|
||||
|
||||
/**
|
||||
* A variable controlling whether pen events should generate synthetic mouse
|
||||
* events.
|
||||
*
|
||||
* The variable can be set to the following values:
|
||||
*
|
||||
* - "0": Pen events will not generate mouse events.
|
||||
* - "1": Pen events will generate mouse events. (default)
|
||||
*
|
||||
* This hint can be set anytime.
|
||||
*
|
||||
* \since This hint is available since SDL 3.2.0.
|
||||
*/
|
||||
#define SDL_HINT_PEN_MOUSE_EVENTS "SDL_PEN_MOUSE_EVENTS"
|
||||
|
||||
/**
|
||||
* A variable controlling whether pen events should generate synthetic touch
|
||||
* events.
|
||||
*
|
||||
* The variable can be set to the following values:
|
||||
*
|
||||
* - "0": Pen events will not generate touch events.
|
||||
* - "1": Pen events will generate touch events. (default)
|
||||
*
|
||||
* This hint can be set anytime.
|
||||
*
|
||||
* \since This hint is available since SDL 3.2.0.
|
||||
*/
|
||||
#define SDL_HINT_PEN_TOUCH_EVENTS "SDL_PEN_TOUCH_EVENTS"
|
||||
|
||||
|
||||
/**
|
||||
* An enumeration of hint priorities.
|
||||
|
@@ -40,6 +40,8 @@
|
||||
#define SDL_pen_h_
|
||||
|
||||
#include <SDL3/SDL_stdinc.h>
|
||||
#include <SDL3/SDL_mouse.h>
|
||||
#include <SDL3/SDL_touch.h>
|
||||
|
||||
/* Set up for C function definitions, even when using C++ */
|
||||
#ifdef __cplusplus
|
||||
@@ -59,6 +61,20 @@ extern "C" {
|
||||
*/
|
||||
typedef Uint32 SDL_PenID;
|
||||
|
||||
/**
|
||||
* The SDL_MouseID for mouse events simulated with pen input.
|
||||
*
|
||||
* \since This macro is available since SDL 3.1.3.
|
||||
*/
|
||||
#define SDL_PEN_MOUSEID ((SDL_MouseID)-2)
|
||||
|
||||
/**
|
||||
* The SDL_TouchID for touch events simulated with pen input.
|
||||
*
|
||||
* \since This macro is available since SDL 3.1.3.
|
||||
*/
|
||||
#define SDL_PEN_TOUCHID ((SDL_TouchID)-2)
|
||||
|
||||
|
||||
/**
|
||||
* Pen input flags, as reported by various pen events' `pen_state` field.
|
||||
|
Reference in New Issue
Block a user