2015-06-21 09:33:46 -06:00
|
|
|
/**
|
|
|
|
* Reference to all test suites.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _testsuites_h
|
|
|
|
#define _testsuites_h
|
|
|
|
|
2022-11-26 21:43:38 -07:00
|
|
|
#include <SDL3/SDL_test.h>
|
2015-06-21 09:33:46 -06:00
|
|
|
|
|
|
|
/* Test collections */
|
|
|
|
extern SDLTest_TestSuiteReference audioTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference clipboardTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference eventsTestSuite;
|
2022-07-01 17:27:51 -06:00
|
|
|
extern SDLTest_TestSuiteReference guidTestSuite;
|
2022-07-13 09:57:40 -06:00
|
|
|
extern SDLTest_TestSuiteReference hintsTestSuite;
|
2023-03-19 00:13:46 -06:00
|
|
|
extern SDLTest_TestSuiteReference intrinsicsTestSuite;
|
2022-07-13 09:57:40 -06:00
|
|
|
extern SDLTest_TestSuiteReference joystickTestSuite;
|
2015-06-21 09:33:46 -06:00
|
|
|
extern SDLTest_TestSuiteReference keyboardTestSuite;
|
2024-01-27 20:11:04 -07:00
|
|
|
extern SDLTest_TestSuiteReference logTestSuite;
|
2015-06-21 09:33:46 -06:00
|
|
|
extern SDLTest_TestSuiteReference mainTestSuite;
|
2022-07-13 09:57:40 -06:00
|
|
|
extern SDLTest_TestSuiteReference mathTestSuite;
|
2015-06-21 09:33:46 -06:00
|
|
|
extern SDLTest_TestSuiteReference mouseTestSuite;
|
API for pressure-sensitive pens + XInput2/Wayland
This patch adds an API for querying pressure-
sensitive pens, cf. SDL_pen.h:
- Enumerate all pens
- Get pen capabilities, names, GUIDs
- Distinguishes pens and erasers
- Distinguish attached and detached pens
- Pressure and tilt support
- Rotation, distance, throttle wheel support
(throttle wheel untested)
- Pen type and meta-information reporting
(partially tested)
Pen event reporting:
- Three new event structures: PenTip, PenMotion, and
PenButton
- Report location with sub-pixel precision
- Include axis and button status, is-eraser flag
Internal pen tracker, intended to be independent
of platform APIs, cf. SDL_pen_c.h:
- Track known pens
- Handle pen hotplugging
Automatic test:
- testautomation_pen.c
Other features:
- XInput2 implementation, incl. hotplugging
- Wayland implementation, incl. hotplugging
- Backward compatibility: pen events default to
emulating pens with mouse ID SDL_PEN_MOUSEID
- Can be toggled via SDL_HINT_PEN_NOT_MOUSE
- Test/demo program (testpen)
- Wacom pen feature identification by pen ID
Acknowledgements:
- Ping Cheng (Wacom) provided extensive feedback
on Wacom pen features and detection so that
hopefully untested Wacom devices have a
realistic chance of working out of the box.
2023-08-27 00:20:29 -06:00
|
|
|
extern SDLTest_TestSuiteReference penTestSuite;
|
2015-06-21 09:33:46 -06:00
|
|
|
extern SDLTest_TestSuiteReference pixelsTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference platformTestSuite;
|
2023-10-10 13:38:22 -06:00
|
|
|
extern SDLTest_TestSuiteReference propertiesTestSuite;
|
2015-06-21 09:33:46 -06:00
|
|
|
extern SDLTest_TestSuiteReference rectTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference renderTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference rwopsTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference sdltestTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference stdlibTestSuite;
|
2023-10-13 10:43:18 -06:00
|
|
|
extern SDLTest_TestSuiteReference subsystemsTestSuite;
|
2015-06-21 09:33:46 -06:00
|
|
|
extern SDLTest_TestSuiteReference surfaceTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference timerTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference videoTestSuite;
|
|
|
|
|
|
|
|
#endif
|