Commit graph

28 commits

Author SHA1 Message Date
a1xd
14bde56daf update rest
grapher is still broken

refactored io / error handling a bit
2021-04-01 01:51:31 -04:00
a1xd
fa3ebfb1eb refactor lut/motivity 2021-03-30 18:27:02 -04:00
a1xd
4456e2bc8b put utility in namespace 2021-03-30 18:26:20 -04:00
a1xd
11045335c1 add zero/inf/nan guards 2021-03-29 19:57:33 -04:00
a1xd
16dc4df3d4 refactor common/settings
only driver compiles

remove accel-base types

merge linear + classic

move gain cap logic into classic impl, cap is now set in terms of output

use cap/limit to determine negation

remove weight, add replacement for power mode only

remove legacy offset option
remove naturalgain mode
add legacy mode flag

naturalgain -> natural
natural -> natural + legacy flag

add dpi setting and more accel args + defaults (prep for ips mode)

replace output speed cap with input cap
2021-03-29 17:14:49 -04:00
a1xd
8dac6b3ff1 add angle snapping
probably works like interaccel
2021-01-21 22:35:37 -05:00
a1xd
0e60e22b73 filter raw input based on id
use device id (from device instance) over first hardware id
use buffered method for all ioctls
update gui/DeviceIDManager to match driver behavior
respond to device change events
desync MouseData and PointData accessors
2021-01-12 17:01:18 -05:00
a1xd
be22e78f96 refactor main callback
check for empty input as suggested by @aroidzap
2021-01-07 12:52:51 -05:00
a1xd
dc38efedbe get hwid when adding device 2021-01-06 12:36:14 -05:00
a1xd
6969310edd size device id/hwids based on docs
this also changes the connect ioctl to not abort when hwid query fails
2021-01-05 18:05:48 -05:00
Tomáš Pazdiora
b4749bfb84 bugfix 2021-01-05 19:34:31 +01:00
Tomáš Pazdiora
b9c79a8d13 revert for loop -> do while (according to a1xd's conclusion) 2021-01-05 19:18:40 +01:00
Tomáš Pazdiora
e11971e733 simplify checking for configuration without specific device 2021-01-05 19:11:48 +01:00
Tomáš Pazdiora
6f1098372b add "Device Hardware ID" setting, to affect only specific device 2021-01-05 04:38:32 +01:00
a1xd
7d14daf1d5 embed version info into assemblies
check app versions against lib, lib against driver

add an 'about' dialog which displays version details, accessible from menu

refactor error handling + add check for negative offset
2020-12-02 05:25:19 -05:00
a1xd
b7bd9f5950 refactor io 2020-12-01 01:41:22 -05:00
a1xd
7e1bd8c5e5 fix dbgprint warning 2020-11-30 23:37:18 -05:00
a1xd
f7f598fef0 Fixed anisotropy not loading correctly on save 2020-10-07 05:17:24 -04:00
a1xd
85aefb4ba1 add arg checks in wrapper
minor changes to settings shape, requires driver reinstall
add error handling to writer

grapher changes:

add prettier serialization + comments
add elements for scale and separated limit/exp
reset irrelevant (invisible) arg input before checks/write
2020-09-27 23:04:29 -04:00
a1xd
75c5f80cad add lut exp to driver 2020-09-22 03:01:34 -04:00
a1xd
7ff79f4e71 add 1s write delay to driver 2020-09-01 22:28:45 -04:00
a1xd
9010cc593a 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
2020-08-31 19:41:21 -04:00
a1xd
9d39a2bf6b add a cooldown on write (one second) 2020-08-06 21:43:44 -04:00
a1xd
5241f9783b add read
add function that makes an ioctl call to return the driver's active mouse_modifier
2020-07-31 20:04:19 -04:00
Jacob Palecki
33317e7948 Separate accel implementations into files 2020-07-29 00:35:39 -07:00
Jacob Palecki
b1ef350506 Rename variables and add modify functions 2020-07-28 02:44:09 -07:00
Jacob Palecki
f7a1883e4d Remove extra mode from variables 2020-07-28 02:09:21 -07:00
a1xd
78156f3416 Add project files. 2020-07-22 19:34:13 -04:00