diff options
| author | a1xd <[email protected]> | 2020-08-31 19:41:21 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-08-31 19:41:21 -0400 |
| commit | 9010cc593af419dd824dba0ade6a2022aea6143f (patch) | |
| tree | 90a82ee14dbb112621657efbd2523ed35f59d154 /wrapper/wrapper_io.hpp | |
| parent | clean up wrapper, minimize heap alloc (diff) | |
| download | rawaccel-9010cc593af419dd824dba0ade6a2022aea6143f.tar.xz rawaccel-9010cc593af419dd824dba0ade6a2022aea6143f.zip | |
add independent xy accel to driver
other changes:
modifier_args type name is now settings,
which is now the type passed in driver ioctl
remove most settings/args verification from driver,
plan to let gui handle most of it
add another accel arg, rate, which is used to set
the 'accel' parameter of types which call exp (nat/sig),
might want to cap it
add (update) serializable DriverSettings (ModifierArgs) class to
gui and static methods for interop
remove properties from ManagedAccel, its now just a black box
for accessing modifier methods
add exception handling in wrapper_io to throw proper managed types
change SettingsManager::Startup to make a new settings file
if an error occurs during deserialization
change structure of accel types; how offset and weight are applied
now depend on additivity of types
remove tagged_union and add a handrolled variant/visit impl
AccelGui::UpdateActiveValueLabels currently broken for caps
and a few other args
remove gui default layout and initial natural accel setup
cli not updated
Diffstat (limited to 'wrapper/wrapper_io.hpp')
| -rw-r--r-- | wrapper/wrapper_io.hpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/wrapper/wrapper_io.hpp b/wrapper/wrapper_io.hpp index 1873f75..aff572b 100644 --- a/wrapper/wrapper_io.hpp +++ b/wrapper/wrapper_io.hpp @@ -1,10 +1,21 @@ #pragma once -#include <rawaccel.hpp> +#include <rawaccel-settings.h> using namespace rawaccel; +using namespace System; struct wrapper_io { - static void writeToDriver(const mouse_modifier& modifier); - static void readFromDriver(mouse_modifier& modifier); + static void writeToDriver(const settings&); + static void readFromDriver(settings&); }; + +public ref struct DriverIOException : public IO::IOException { +public: + DriverIOException() {} + DriverIOException(String^ what) : IO::IOException(what) {} +}; + +public ref struct DriverNotInstalledException : public DriverIOException {}; + +public ref struct DriverWriteCDException : public DriverIOException {}; |