mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-08 14:55:40 +00:00
Update keyboards/keebfront/vanguard65/vanguard65.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
902eea4b03
commit
cb7c0d0dbf
@ -12,3 +12,17 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "vanguard65.h"
|
#include "vanguard65.h"
|
||||||
|
|
||||||
|
#if defined(ENCODER_ENABLE) && !defined(ENCODER_MAP_ENABLE)
|
||||||
|
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||||
|
if (!encoder_update_user(index, clockwise)) { return false; }
|
||||||
|
if (index == 0) {
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code_delay(KC_VOLU, 10);
|
||||||
|
} else {
|
||||||
|
tap_code_delay(KC_VOLD, 10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user