RetroArch/input
Jesse Talavera d682917e44
Add Linux support for illuminance sensors (#17208)
* First crack at light sensor support for Linux

* Add light-sensor support to most Linux input drivers

* Fix a compiler error

- Whoops, forgot to declare `sdl`

* Refactor linux_illuminance_sensor_t

- Allow the poll rate to be specified
- Poll the sensor on a separate thread
- Open a file handle each time we poll the sensor, since sysfs doesn't update the contents of an existing handle

* Set the `done` flag when closing the light sensor

- Whoops

* Avoid a division by zero when updating the poll rate of an existing sensor

* Don't try to open illuminance sensors from ".", "..", or hidden files

* Never mind

* Fix some silly mistakes

* Skip hidden files, ".", and ".."

* Cancel the sensor poll thread mid-sleep when closing it

- POSIX says it's fine

* Add to CHANGES.md

* Address feedback given on PR

* Use libretro-common's file system instead of stdio
2024-12-17 05:49:39 -08:00
..
common Add Linux support for illuminance sensors (#17208) 2024-12-17 05:49:39 -08:00
connect Fix typos (#17068) 2024-10-01 17:36:33 -07:00
drivers Add Linux support for illuminance sensors (#17208) 2024-12-17 05:49:39 -08:00
drivers_hid Fix typos (#17068) 2024-10-01 17:36:33 -07:00
drivers_joypad Support for analog L2/R2 values when a DS3 controller is used with PS Vita. (#17261) 2024-12-15 09:24:13 -08:00
drivers_keyboard Fix typos (#17068) 2024-10-01 17:36:33 -07:00
include Cosmetical fix (xvfk -> xfvk), #16631 2024-06-08 11:17:42 -05:00
input_autodetect_builtin.c mfi: left/right pressure sensitive triggers (#16385) 2024-03-28 12:58:26 -07:00
input_defines.h Controller device reservation / preference. 2024-06-05 18:17:54 -05:00
input_driver.c overlay: fix crash on null pointer 2024-12-16 15:59:32 +01:00
input_driver.h replay format extended to support external tools (#17042) 2024-10-04 12:47:34 -07:00
input_keymaps.c Incorporate FreeBSD port patches (#16221) 2024-09-10 18:11:40 -07:00
input_keymaps.h Revive/rewrite Keyboard Overlay and OSK Toggle 2023-07-09 04:42:49 +02:00
input_osk.h
input_osk_utf8_pages.h
input_overlay.h Add Overlay Mouse, Lightgun, and Pointer (#16343) 2024-03-16 01:56:30 -07:00
input_remapping.h input_config_get_bind_string - do proper character 2024-06-16 18:07:30 +02:00
input_types.h Cleanups 2023-06-01 22:52:05 +02:00