Commit Graph

66 Commits

Author SHA1 Message Date
László Monda
b917a97e93 Parse long media macro actions. 2018-05-03 00:42:20 +02:00
László Monda
e9cd3a96c2 Don't reinitialize LED driver ICs upon suspend and resume. 2018-04-28 17:08:25 +02:00
László Monda
8856c484b6 Add LedDisplay_UpdateAll() 2018-04-28 16:21:54 +02:00
László Monda
c2582729f2 Remove LED_DRIVERS_ENABLED. 2018-04-28 11:43:01 +02:00
László Monda
195f40949f Fix build warning. 2018-03-25 22:38:45 +02:00
László Monda
7e524d97b1 Don't read (the default 250ms) DoubleTapSwitchLayerTimeout from the user configuration but rather set it to 150ms which feels quite optimal. 2018-03-05 10:16:58 +01:00
László Monda
fa558abef3 Add LED_DRIVERS_ENABLED 2017-12-28 00:08:29 +01:00
László Monda
7c91f8f6d1 Replace UsbCommandId_ReadHardwareConfig and UsbCommandId_ReadUserConfig with UsbCommandId_ReadConfig. 2017-12-12 01:22:26 +01:00
László Monda
0f34b01189 Update LED brightness levels upon applying the configuration. 2017-12-10 20:48:26 +01:00
László Monda
9b9bdbc03d Rename baseLayerPointerFunction to modLayerPointerFunction and modLayerPointerFunction to fnLayerPointerFunction. Suppress unused variable compilation warnings. 2017-12-03 23:53:32 +01:00
László Monda
bb5c118e97 Move pointerRole from keymaps to module configurations as pointerMode. Add angularShift, baseLayerPointerFunction, modLayerPointerFunction, and mouseLayerPointerFunction to module configurations. 2017-12-03 23:25:55 +01:00
László Monda
f76780ec48 Make the parser parse mouse properties, LED brightness values, and double tap switch layer timeout. Rename pointer config properties. 2017-11-30 18:20:00 +01:00
László Monda
071be7e815 Implement "hold and double tap" layer switch mode and temporarily treat every hold mode keys this way. 2017-11-26 00:23:50 +01:00
László Monda
210ef31f27 Implement mouse movement acceleration and deceleration. 2017-11-24 13:00:05 +01:00
László Monda
4bbc49f4ca Clean up processMouseAction() by using floats instead of divisor values. Move MouseSpeed_* into mouse_speed_action_t 2017-11-21 19:01:59 +01:00
László Monda
a4ddf1ff2a Uppercamelcase read*() config parser functions since they're not local. 2017-11-11 16:54:40 +01:00
László Monda
f927aef7f5 Put function curlies into their own line according to our coding standards all across the codebase. 2017-11-10 23:14:44 +01:00
László Monda
693315222f Handle secondary role modifiers. 2017-11-06 18:11:05 +01:00
László Monda
3533a8f73c Rename long presss action to secondary role. 2017-11-06 01:58:11 +01:00
László Monda
0688c1bdfc Rename keymaps.[ch] to keymap.[ch] 2017-11-03 19:01:56 +01:00
László Monda
31b7dddef4 Read the new UserConfig.userConfigLength field. 2017-11-02 23:10:22 +01:00
László Monda
2aaef66d85 Convert LAYER_ID_* macros to LayerId_* enum values. 2017-11-02 21:48:30 +01:00
László Monda
84b304fe02 Read (and ignore) device name. 2017-10-14 15:54:38 +02:00
László Monda
9f411dc1d4 Throw ParserError_InvalidKeymapCount if keymapCount == 0. 2017-10-06 23:37:05 +02:00
László Monda
377fe4a2b2 Make EEPROM transfers receive an operation and a buffer id parameter. This allows reading and writing both staging and validated user configurations which will aid future debugging. This API is also cleaner. 2017-10-05 02:45:22 +02:00
László Monda
259f4d3299 Add config_buffer_id_t. 2017-10-04 23:57:43 +02:00
László Monda
8e420f8592 Rename and rearrange some variables in config_globals.c for better readability. 2017-10-04 22:39:40 +02:00
László Monda
63674e02b7 Now rename the other guard macro, too. I thought it was renamed by the IDE. 2017-10-04 22:36:27 +02:00
László Monda
e27fb83693 Rename guard macro according to the filename. 2017-10-04 22:35:17 +02:00
László Monda
4295793fb9 Add ATTR_* macros in the newly created attributes.h and use them wherever possible for improved readability. 2017-10-04 22:26:48 +02:00
László Monda
f348aec97a Rename UserConfigBuffer to ValidatedUserConfigBuffer. 2017-10-04 22:10:55 +02:00
László Monda
024c2d5cff Merge branch 'master' into macro-engine 2017-08-11 10:05:32 +02:00
Eric Tang
968a9b13a4 Move the opening braces of the macro parser functions onto their own lines 2017-08-09 13:31:13 -07:00
Eric Tang
b1fb5f62c1 Make macro_reference_t store the offset of the first macro action and expose ParseMacroAction 2017-08-09 13:13:50 -07:00
Eric Tang
22e49c50d1 Make the macro parser store the data it extracts into macro_action_t variables 2017-08-09 13:09:17 -07:00
Eric Tang
c342f75031 Check the value of macroIndex 2017-08-09 11:50:02 -07:00
Eric Tang
abc0b994a4 Fully implement parsePlayMacroAction 2017-08-09 11:21:45 -07:00
Eric Tang
b0b659940d Limit the number of macros to 255 2017-08-09 11:13:52 -07:00
Eric Tang
558089f856 Check the value of macroCount 2017-08-09 10:02:33 -07:00
Eric Tang
71b43b8625 Use MAX_KEYMAP_NUM instead of a magic value 2017-08-09 09:54:58 -07:00
Eric Tang
c983e58d8e When parsing a macro, store its offset and number of actions 2017-08-09 09:49:30 -07:00
Eric Tang
1c91a7d5d9 Move the opening brace of ParseKeymap onto its own line and remove a stray semicolon 2017-08-08 17:44:57 -07:00
Eric Tang
332f1d9b5a Check the value of abbreviationLen 2017-08-08 17:40:41 -07:00
Eric Tang
1ef10e9a1a Check the values of moduleConfigurationCount and keymapCount 2017-08-08 17:40:41 -07:00
Eric Tang
7306073cee Use 8-bit instead of 16-bit loop indices where they will suffice 2017-08-08 17:40:41 -07:00
Eric Tang
2b97758ad2 Move the opening braces of some functions onto their own lines 2017-08-08 16:20:48 -07:00
László Monda
dd5a0e058d Split config_state.[ch] to config_globals.[ch] and basic_types.[ch] 2017-08-08 23:22:18 +02:00
Eric Tang
b91d8ca472 Add a missing include 2017-08-08 13:00:08 -07:00
Eric Tang
b07aba1766 Set AllKeymapsCount only once when applying a configuration 2017-08-08 12:40:19 -07:00
Eric Tang
31de620fee Add error checking to parseSwitchKeymapAction 2017-08-08 12:10:44 -07:00