Commit Graph

1160 Commits

Author SHA1 Message Date
László Monda
35b8f0084b Don't put a zero scancode into ActiveUsbBasicKeyboardReport->scancodes[basicScancodeIndex++] 2017-11-03 22:32:10 +01:00
László Monda
0688c1bdfc Rename keymaps.[ch] to keymap.[ch] 2017-11-03 19:01:56 +01:00
László Monda
4072a0ea33 Rename Keymap_Switch() to SwitchKeymap() 2017-11-03 18:59:58 +01:00
László Monda
e169627cde Move updateLayerStates() and getActiveLayer() into the newly created layer.c 2017-11-03 18:53:17 +01:00
László Monda
aeb325a09f Being static variables, lowercamelcase HeldLayers and PressedLayers. 2017-11-03 18:43:26 +01:00
László Monda
0df7879358 Get rid of the unused PreviousToggledLayer. 2017-11-03 18:42:04 +01:00
László Monda
bbbecb8f87 Handle layer toggle actions. 2017-11-03 18:29:17 +01:00
László Monda
05bbd28877 Maintain the states of previous key states. 2017-11-03 13:43:16 +01:00
László Monda
b18cb651ce Leave the active layer active even if another layer switcher key gets pressed while holding it. 2017-11-03 12:49:55 +01:00
László Monda
88fac5c1ff Rename key_matrix_instance.[ch] to right_key_matrix.[ch] 2017-11-03 03:30:14 +01:00
László Monda
fe2e611bb1 Update KeyStates[SlotId_RightKeyboardHalf] within usb_report_updater.c instead of main.c 2017-11-03 03:22:56 +01:00
László Monda
599b78a676 Don't expose UpdateUsbReports() anymore. 2017-11-03 03:20:08 +01:00
László Monda
a0a162ae9e Extend key states to include not only the current state but also the previous state and suppressed state. 2017-11-03 03:17:46 +01:00
László Monda
e0868ac866 Rename CurrentKeyStates to KeyStates and move it to the newly created key_states.[ch] 2017-11-03 02:46:34 +01:00
László Monda
a7e70d0cb2 Link to the latest Agent revision. Add commented out call to user-config-json-to-bin.ts which apparently doesn't work from outer directories yet. 2017-11-03 00:57:37 +01:00
László Monda
31b7dddef4 Read the new UserConfig.userConfigLength field. 2017-11-02 23:10:22 +01:00
László Monda
ecf7f10b9c Exchange Ctrl and Alt according to the official UHK default keymap. 2017-11-02 22:03:43 +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
00dfd96d55 Instead of scanning the keyboard matrix from the main loop and utilizing busy loops, try to use a PIT interrupt handler to do the same thing, scanning one row per interrupt call without busy loops.
For some reason, this makes the movement of the mouse pointer very slow and makes it jump from time to time, so I ended up adding INTERRUPT_KEY_SCANNER and disabling the timer interrupt.
Also double bufferred the mouse report just like the others. Unfortunately this does not affect this issue.
2017-11-02 01:11:41 +01:00
László Monda
024f24f489 Make make-release.js group master and slave firmwares into separate directories. 2017-11-01 02:09:22 +01:00
László Monda
6043651341 Rename release-firmware.js to make-release.js because it doesn't actually releases the release to GitHub. It merely creates it. 2017-11-01 00:35:33 +01:00
László Monda
f7d775c6da Remove output files before the build process. Create the release directory in the directory of the script instead of /tmp 2017-11-01 00:33:35 +01:00
László Monda
1ab0885200 Fix the path of build directories in .travis.yml 2017-11-01 00:21:26 +01:00
László Monda
561d183840 Make release-firmware.js work when invoked from any directory. 2017-11-01 00:11:33 +01:00
László Monda
df48f5e1be Set config.fatal to true. 2017-11-01 00:00:29 +01:00
László Monda
b94310f57a Utilize string interpolation wherever possible. 2017-10-31 23:58:37 +01:00
László Monda
dc82b51008 Read the current firmware version from package.json 2017-10-31 23:55:56 +01:00
László Monda
3aff28726f Port release-firmware to ShellJS. 2017-10-31 23:45:22 +01:00
László Monda
16e173140a Move package.json and release-firmware to scripts 2017-10-31 23:36:15 +01:00
László Monda
13dd0753ce Add package-lock.json and node_modules to .gitignore and clean up its obsolete entries. 2017-10-31 23:32:19 +01:00
László Monda
ba5a49f7d1 Hoist {left,right}/build/kds/* to {left,right}/build to simplify the directory hierarchy. 2017-10-31 23:11:22 +01:00
László Monda
64b07746ee Invoke KDS in headless mode to buid the firmware before assembling the release. 2017-10-31 01:40:49 +01:00
László Monda
d59ed73a10 Fix firmware paths. 2017-10-31 01:36:22 +01:00
László Monda
010b276f8b Fix XML structure. 2017-10-31 01:33:18 +01:00
László Monda
1d7790f74e Generate .hex files instead of .srec for the right half firmware. 2017-10-29 22:27:47 +01:00
László Monda
808d916687 Clean up .cproject and .gitignore files after the rename of the build and run configurations. 2017-10-29 22:04:48 +01:00
László Monda
52bb02bc3d Rename build and run configurations to reflect device ids. 2017-10-29 21:54:02 +01:00
László Monda
e8ab25493e Make the firmware upgrade scripts working directory independent. 2017-10-29 19:09:32 +01:00
László Monda
72b279841c Port the blhost-unix.sh firmware update script of the right keyboard half to ShellJS resulting in update-master-firmware.js 2017-10-29 18:20:13 +01:00
László Monda
4e2d867424 Extract the USB product ID for getBlhostCmd() 2017-10-29 18:17:48 +01:00
László Monda
a5402e7c6a Extract checkFirmwareImage() 2017-10-29 17:47:24 +01:00
László Monda
f847cc844e Extract getBlhostCmd() to shared.js 2017-10-29 17:35:55 +01:00
László Monda
976e402445 Make update-slave-firmware.js extremely resilient (not a single failure out of 100 updates). Add shared.js 2017-10-29 17:17:12 +01:00
László Monda
cf007f81bd Merge branch 'master' into add-device-name 2017-10-28 18:46:46 +02:00
László Monda
569493cbfa Add UsbDebugInfo to aid future debugging via USB. 2017-10-28 17:12:52 +02:00
László Monda
f0a98eebb5 Set the initial keymap abbrivation to FTY (for factory keymap). 2017-10-26 20:32:19 +02:00
László Monda
55e4997ea2 Make the system keyboard descriptor play nicely with OSX. 2017-10-26 18:22:37 +02:00
László Monda
5642ab29a1 Reorder USB interfaces in usb_device_config.h, too. 2017-10-26 01:12:51 +02:00
László Monda
6bdd320ed8 Reorder USB interfaces all across the codebase in the following order: generic HID, basic keyboard, media keyboard, system keyboard, mouse. 2017-10-26 00:52:20 +02:00
László Monda
c77286512c Reset keyboard reports just before changing them by UpdateActiveUsbReports(). This seems to completely solve the repeated media key issue. 2017-10-25 18:31:52 +02:00