samvel1024 / kbct

Keyboard keycode mapping utility for Linux supporting layered configuration
MIT License
272 stars 24 forks source link

Refactor code. #36

Closed Kineolyan closed 7 months ago

Kineolyan commented 2 years ago

This PR mainly refactors the code base to extract smaller functions.

The main driver for this refactoring was to be able to understand the logic of the function map_event. To do so, I extracted dedicated functions for each case. And large chains of calls have been moved into functions naming their intent.

Kineolyan commented 7 months ago

Closing this PR as there is no one to review.