src/sensor


Log

Author Commit Date CI Message
Pierre Wendling 49c25b1d 2022-10-09T23:49:00 N3DS: Fix PrivateSensorUpdate call. A new timestamp parameter was added in 2c51874.
Pierre Wendling 392f3882 2022-09-20T22:45:24 N3DS: Use SDL_Sensor instead of Joystick sensors.
Ozkan Sezer 77c7836c 2022-09-27T20:21:24 fix vita build failure after commit 2c518747b
Sam Lantinga 2c518747 2022-09-27T09:56:02 Added microsecond timestamp to sensor values for PS4 and PS5 controllers using the HIDAPI driver
Sam Lantinga e8c3ff56 2022-03-17T10:01:13 Removed problematic call to ISensor_SetEventSink() Fixes https://github.com/libsdl-org/SDL/issues/5288
Sam Lantinga 120c76c8 2022-01-03T09:40:00 Updated copyright for 2022
Sam Lantinga 3ba9276a 2021-11-28T21:14:02 Don't fail the sensor init if we couldn't create a sensor manager (i.e. we're running on Wine) Fixes https://github.com/libsdl-org/SDL/issues/5031
Sam Lantinga c2dd50a9 2021-11-12T08:28:02 Fixed whitespace
Ivan Epifanov e58a955e 2021-03-08T18:39:00 Deprecate dolcesdk
Ivan Epifanov ca5e5d61 2020-12-18T16:34:24 VITASDK compatibility
Ivan Epifanov 7d89f09f 2020-12-18T14:28:09 ISO C90 fixes
Ivan Epifanov 6f7c7c55 2020-12-05T22:38:12 sensors corrections
Ivan Epifanov 6d856377 2020-12-05T12:37:53 Fix sensors
Ivan Epifanov a1adc8a9 2020-11-22T01:02:00 Add sensor support
Mathieu Eyraud 844d5e3e 2021-02-21T11:54:50 Fix memory leak in ConnectSensor 'name' is leaked in case of error.
Ozkan Sezer 265a1cc9 2021-01-05T15:50:02 use WIN_StringToUTF8W instead of WIN_StringToUTF8 where needed (#2) cf. bug #5435. - SDL_wasapi_win32.c (GetWasapiDeviceName): pwszVal is WCHAR* - windows/SDL_sysfilesystem.c (SDL_GetBasePath, SDL_GetPrefPath) - windows/SDL_sysurl.c (SDL_SYS_OpenURL): wurl is WCHAR* - SDL_windowssensor.c (ConnectSensor): bstr_name is WCHAR* - windows/SDL_systhread.c (SDL_SYS_SetupThread): strw is WCHAR*
Sam Lantinga 9130f7c3 2021-01-02T10:25:38 Updated copyright for 2021
Sam Lantinga cb361896 2020-12-09T07:16:22 Fixed bug 5235 - All internal sources should include SDL_assert.h Ryan C. Gordon We should really stick this in SDL_internal.h or something so it's always available.
Sam Lantinga fcb21aa8 2020-11-17T10:30:20 Added API for sensors on game controllers Added support for the PS4 controller gyro and accelerometer on iOS and HIDAPI drivers Also fixed an issue with the accelerometer on iOS having inverted axes
Ozkan Sezer 59795822 2020-11-11T12:33:55 make SDL_SensorGetDeviceNonPortableType match its prototype.
Sam Lantinga 56622f9c 2020-06-17T10:09:07 Fixed bug 5126 - MinGW compile error SDL_windowssensor.c Martin Gerhardy SDL_windowssensor.c includes InitGuid.h - but it should be initguid.h
Ryan C. Gordon a299fdd7 2020-05-21T03:52:48 sensor: Fixed compiler warnings on mingw64.
Ryan C. Gordon b4e76b58 2020-05-20T17:32:23 sensor: Fix overaggressive search/replace. :)
Ryan C. Gordon 27c38eb2 2020-05-20T17:22:52 sensor: Correct fix for redefinition of various symbols.
Ryan C. Gordon c9d358bc 2020-05-20T16:59:35 sensor: Fix build on various Windows compilers with various predefinitions.
Ryan C. Gordon 68777406 2020-05-20T16:58:33 windows: Fix calls to CoCreateInstance() so last parameter is a LPVOID *.
Sam Lantinga 0f374b06 2020-04-22T15:42:32 Fixed build on older Visual Studio, enable new features on newer Visual Studio
Sam Lantinga aba27928 2020-04-18T21:41:37 Added a Windows Gaming Input joystick driver This driver supports the Razer Atrox Arcade Stick Some of the quirks of this driver, inherent in Windows Gaming Input: * There will never appear to be controllers connected at startup. You must support hot-plugging in order to see these controllers. * You can't read the state of the guide button * You can't get controller events in the background
Sam Lantinga e9c94ac0 2020-04-08T10:27:30 Fixed Windows accelerometer data units
Sam Lantinga 09f55263 2020-04-08T09:00:10 Fixed memory leak and removed debug code from Windows sensor implementation
Sam Lantinga 3180ba81 2020-04-08T08:34:27 First pass at Windows sensor implementation
Sam Lantinga 2c02b741 2020-03-23T12:10:05 Fixed bug 5052 - Interval between SDL_SENSORUPDATE events for gyroscopes is too high Andrei Kortunov Hello. I try to implement an application for Android, which uses a new sensors API from 2.0.9 to control a camera rotation via built-in gyroscope, using the code from the test/testsensor.c as an example. Gyroscope input itself works well, but an interval between SDL_SENSORUPDATE events is about 200ms (the SENSOR_DELAY_NORMAL, I believe), when I need the interval about 20-40ms (the SENSOR_DELAY_GAME or SENSOR_DELAY_FASTEST).
Sam Lantinga a8780c6a 2020-01-16T20:49:25 Updated copyright date for 2020
Sylvain Becker 3ac67cf4 2019-10-23T08:46:59 Fixed bug 4837 - Use after free in SDL_SensorUpdate (Thanks!)
Sylvain Becker 412ab7e1 2019-10-18T14:23:37 Fixed bug 4829 - Sensor events incorrectly disabled
Sam Lantinga 5e13087b 2019-01-04T22:01:14 Updated copyright for 2019
Sam Lantinga b73703b9 2018-11-19T21:17:00 Fixed bug 4391 - hid_enumerate() sometimes causes game to freeze for a few seconds Daniel Gibson Even though my game (dhewm3) doesn't use SDL_INIT_JOYSTICK, SDL_PumpEvent() calls SDL_JoystickUpdate() which ends up calling hid_enumerate() every three seconds, and sometimes on my Win7 box hid_enumerate() takes about 5 seconds, which causes the whole game to freeze for that time.
Micha? Janiszewski 91820998 2018-10-28T21:36:48 Add and update include guards Include guards in most changed files were missing, I added them keeping the same style as other SDL files. In some cases I moved the include guards around to be the first thing the header has to take advantage of any possible improvements compiler may have for inclusion guards.
Sam Lantinga 7df0f4fd 2018-09-27T14:56:29 Fixed bug 4277 - warnings patch Sylvain Patch a few warnings when using: -Wmissing-prototypes -Wdocumentation -Wdocumentation-unknown-command They are automatically enabled with -Wall
Sam Lantinga f225af0c 2018-08-22T21:48:28 Added SDL_GetDisplayOrientation() to get the display orientation, and added a new event SDL_DISPLAYEVENT to notify the application when the orientation changes. Documented the values returned by the accelerometer and gyroscope sensors
Sam Lantinga c6647bf9 2018-08-21T17:24:12 Added the iOS sensor implementation
Sam Lantinga 3e5dbc69 2018-08-21T13:29:21 Added a dummy sensor driver
Sam Lantinga 7c3040e0 2018-08-21T12:11:34 First pass on the new SDL sensor API