parent
ecc52c86de
commit
ac354318d3
@ -0,0 +1,14 @@
|
||||
# This stub makefile for a Kaleidoscope plugin pulls in
|
||||
# all targets from the Kaleidoscope-Plugin library
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
SKETCHBOOK_DIR ?= $(HOME)/Documents/Arduino/
|
||||
else
|
||||
SKETCHBOOK_DIR ?= $(HOME)/Arduino
|
||||
endif
|
||||
|
||||
BOARD_HARDWARE_PATH ?= $(SKETCHBOOK_DIR)/hardware
|
||||
KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR ?= keyboardio/avr/build-tools/makefiles/
|
||||
include $(BOARD_HARDWARE_PATH)/$(KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR)/rules.mk
|
@ -0,0 +1,10 @@
|
||||
name=Kaleidoscope-Qukeys
|
||||
version=0.0.0
|
||||
author=Michael Richters
|
||||
maintainer=Michael Richters <gedankenexperimenter@gmail.com>
|
||||
sentence=Assign two keycodes to a single key.
|
||||
paragraph=See README for more information.
|
||||
category=Communication
|
||||
url=https://github.com/gedankenlab/Kaleidoscope-Qukeys
|
||||
architectures=avr
|
||||
dot_a_linkage=true
|
@ -0,0 +1,21 @@
|
||||
/* -*- mode: c++ -*-
|
||||
* Kaleidoscope-Qukeys -- Assign two keycodes to a single key
|
||||
* Copyright (C) 2017 Michael Richters
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Kaleidoscope/Qukeys.h>
|
@ -0,0 +1,35 @@
|
||||
/* -*- mode: c++ -*-
|
||||
* Kaleidoscope-Qukeys -- Assign two keycodes to a single key
|
||||
* Copyright (C) 2017 Michael Richters
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Kaleidoscope-Qukeys.h>
|
||||
#include <kaleidoscope/hid.h>
|
||||
|
||||
#ifdef ARDUINO_VIRTUAL
|
||||
#define debug_print(...) printf(__VA_ARGS__)
|
||||
#else
|
||||
#define debug_print(...)
|
||||
#endif
|
||||
|
||||
|
||||
namespace kaleidoscope {
|
||||
|
||||
// constructor
|
||||
Qukeys::Qukeys(void) {
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
/* -*- mode: c++ -*-
|
||||
* Kaleidoscope-Qukeys -- Assign two keycodes to a single key
|
||||
* Copyright (C) 2017 Michael Richters
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Kaleidoscope.h>
|
||||
|
||||
|
||||
namespace kaleidoscope {
|
||||
|
||||
class Qukeys : public KaleidoscopePlugin {
|
||||
|
||||
public:
|
||||
Qukeys(void);
|
||||
|
||||
void begin(void) final;
|
||||
|
||||
private:
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue