- 27 Feb, 2021 1 commit
-
-
Vanadiae authored
This ensures we read only readable device files starting with event and hence handled by evdev, and not other protocols. This avoids writing garbage to devices that use another protocol, which could lead to messed up input devices.
-
- 28 Nov, 2020 1 commit
-
-
Adrien Plazas authored
-
- 27 Nov, 2020 2 commits
-
-
Vanadiae authored
This uses has_key() and has_abs() instead of libevdev_has_event_code() directly in *_new(), making it simpler to read.
-
Vanadiae authored
This uses the file change event type to check for file deletion, rather than using g_file_query_exists(). This prevents some race conditions, as explained by the documentation of g_file_query_exists().
-
- 26 Nov, 2020 2 commits
- 23 Nov, 2020 8 commits
-
-
Adrien Plazas authored
Fixes #23
-
Vanadiae authored
This way it makes sense straight away that you're getting the sdl_string for the guid.
-
Vanadiae authored
NXIO has a specific use case, that is, no such device or address, and isn't meant for general-purpose use. Since there isn't any G_FILE_ERROR_NOT_A_GAME_CONTROLLER, use G_FILE_ERROR_FAILED which is made to be used when no unix error code exists for it.
-
Vanadiae authored
Those were used when the mapping string is wrong (i.e. user mapping string), so it's not a programmer error (as that's what g_critical() is made for).
-
Vanadiae authored
It doesn't make sense to pass G_FILE_ERROR_FAILED, as this one is only meant for when there isn't any existing error code for this file error, but here it isn't the case since we have the errno set on error.
-
Vanadiae authored
It wasn't used anywhere in the code.
-
Vanadiae authored
So you don't need to look at the code to understand.
-
Vanadiae authored
It would have made sense if there was extra things done on @self but here it doesn't make much sense. So shorten it to help scanning the code and quickly understanding it.
-
- 22 Nov, 2020 21 commits
-
-
Adrien Plazas authored
These aren't programming errors from our side nor from the library user's side, but from some bad data.
-
Vanadiae authored
As g_return_if_fail is only for public API checking. If there need to be some arguments checking in static functions, it is a programmer error and so must assert. This commit also removes type checking for self (i.e. the type defined in this file), since those check should already be put for public API functions.
-
Adrien Plazas authored
-
Adrien Plazas authored
-
Vanadiae authored
-
Vanadiae authored
-
Adrien Plazas authored
This tests on Fedora to allow testing with it works with gudev.
-
Vanadiae authored
I accidentally didn't test with udev when refactoring a MR and messed up that function.
-
Vanadiae authored
Add the namespace_object_ prefix to the finalize function to match the code style.
-
Vanadiae authored
Add the namespace_object_ prefix to the finalize function to match the code style.
-
Adrien Plazas authored
This makes our database more consistent, and will help us when we will normalize the database, as normalized mappings don't have the platform key.
-
Adrien Plazas authored
This prepares the normalization of the file.
-
Vanadiae authored
-
Vanadiae authored
That is, of the form <object_type_name>_<signal_name>_<cb>.
-
Vanadiae authored
That is, of the form <object_type_name>_<signal_name>_<cb>.
-
Adrien Plazas authored
That's what we do almost everywhere else and in other libs I maintain, let's standardize on that.
-
Adrien Plazas authored
-
Adrien Plazas authored
This makes the functions trying to free some data simpler and hopefully more optimized.
-
Adrien Plazas authored
-
Adrien Plazas authored
This simplifies the code and make it cleaner.
-
Adrien Plazas authored
A mapping string is always expected to start with a 32 hex-digits field and a text field, otherwise it's invalid, so let's check that.
-
- 21 Nov, 2020 5 commits
-
-
Adrien Plazas authored
Thanks to changes introduced by the previous commit, the mapping object can always expect to be fed a complete mapping string, with he first field being the GUID and the second one being the gamepad's name. These two first fields must hence be skipped.
-
Adrien Plazas authored
This will allow the mapping object to always expect a full mapping string, with the GUID and the gamepad name.
-
Vanadiae authored
It speeds up a lot the initial flatpak build. This commit also disables the tests and documentation of evdev to speed up more the build.
-
Vanadiae authored
This avoids having to manually build the summary, with all what it entails (e.g. aligning label, having to use .format() extensively). This commit also bumps meson minimum version requirement accordingly.
-
Vanadiae authored
As it uses '/ with string arguments' and 'install arg in configure_file'
-