2015-06-21 23:33:46 +08:00
|
|
|
/**
|
|
|
|
* Reference to all test suites.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _testsuites_h
|
|
|
|
#define _testsuites_h
|
|
|
|
|
2022-11-27 12:43:38 +08:00
|
|
|
#include <SDL3/SDL_test.h>
|
2015-06-21 23:33:46 +08:00
|
|
|
|
|
|
|
/* Test collections */
|
|
|
|
extern SDLTest_TestSuiteReference audioTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference clipboardTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference eventsTestSuite;
|
2022-07-02 07:27:51 +08:00
|
|
|
extern SDLTest_TestSuiteReference guidTestSuite;
|
2022-07-13 23:57:40 +08:00
|
|
|
extern SDLTest_TestSuiteReference hintsTestSuite;
|
2023-03-19 14:13:46 +08:00
|
|
|
extern SDLTest_TestSuiteReference intrinsicsTestSuite;
|
2022-07-13 23:57:40 +08:00
|
|
|
extern SDLTest_TestSuiteReference joystickTestSuite;
|
2015-06-21 23:33:46 +08:00
|
|
|
extern SDLTest_TestSuiteReference keyboardTestSuite;
|
2024-01-28 11:11:04 +08:00
|
|
|
extern SDLTest_TestSuiteReference logTestSuite;
|
2015-06-21 23:33:46 +08:00
|
|
|
extern SDLTest_TestSuiteReference mainTestSuite;
|
2022-07-13 23:57:40 +08:00
|
|
|
extern SDLTest_TestSuiteReference mathTestSuite;
|
2015-06-21 23:33:46 +08: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 14:20:29 +08:00
|
|
|
extern SDLTest_TestSuiteReference penTestSuite;
|
2015-06-21 23:33:46 +08:00
|
|
|
extern SDLTest_TestSuiteReference pixelsTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference platformTestSuite;
|
2023-10-11 03:38:22 +08:00
|
|
|
extern SDLTest_TestSuiteReference propertiesTestSuite;
|
2015-06-21 23:33:46 +08:00
|
|
|
extern SDLTest_TestSuiteReference rectTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference renderTestSuite;
|
2024-03-15 07:32:50 +08:00
|
|
|
extern SDLTest_TestSuiteReference iostrmTestSuite;
|
2015-06-21 23:33:46 +08:00
|
|
|
extern SDLTest_TestSuiteReference sdltestTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference stdlibTestSuite;
|
2023-10-14 00:43:18 +08:00
|
|
|
extern SDLTest_TestSuiteReference subsystemsTestSuite;
|
2015-06-21 23:33:46 +08:00
|
|
|
extern SDLTest_TestSuiteReference surfaceTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference timerTestSuite;
|
|
|
|
extern SDLTest_TestSuiteReference videoTestSuite;
|
|
|
|
|
|
|
|
#endif
|