]> git.sesse.net Git - nageru/commit
Make it possible to load/save input mappings.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 16 Sep 2016 18:20:45 +0000 (20:20 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 19 Oct 2016 22:55:44 +0000 (00:55 +0200)
commit5cb4274907d32fb8946558988461224196c2be59
tree0734ef28619fd281c0b7b587c3f6e2ee71fde54d
parenta564f192f808841ad8dfa9a4aa6c8db3335bd6fd
Make it possible to load/save input mappings.

Settings these up can be a bit of a hassle if you have a lot of them,
so we allow them to be saved to disk and then loaded back (complete
with machinery for fuzzy-matching devices if the state has changed,
e.g. cards moved around).

This introduces a dependency on protocol buffers, because it's a
convenient way to store simple data to disk (including forward
compatibility). We choose to use the text format for the user's
convenience; we don't need the speed or compactness of the binary format.
13 files changed:
.gitignore
Makefile
README
alsa_input.cpp
alsa_input.h
audio_mixer.cpp
audio_mixer.h
input_mapping.cpp [new file with mode: 0644]
input_mapping.h
input_mapping_dialog.cpp
input_mapping_dialog.h
state.proto [new file with mode: 0644]
ui_input_mapping.ui