ppebb / isp2

GNU Lesser General Public License v3.0
7 stars 4 forks source link

Task: Rework input processing #107

Open ppebb opened 3 months ago

ppebb commented 3 months ago

Input processing currently just happens wherever. A system of registering a set of callbacks based on a given condition or key would improve this and easily allow for rebinding.

One approach would be the definition of meta keys (i.e. "up", "left", etc) which can be subscribed to by both UI and in game, such that the same binding applies in multiple places under an intuitive grouping. "Up" would correspond to navigating upward in UI as well as in game, for example.