/*
Copyright 2013 Jun Wako <wakojun@gmail.com>
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 2 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/>.
*/
extern keymap_config_t keymap_config;
static uint8_t real_mods = 0;
static uint8_t weak_mods = 0;
static uint8_t macro_mods = 0;
static int8_t cb_head = 0;
static int8_t cb_tail = 0;
static int8_t cb_count = 0;
// TODO: pointer variable is not needed
// report_keyboard_t keyboard_report = {};
report_keyboard_t *keyboard_report = &;
extern inline void ;
extern inline void ;
extern inline void ;
static uint8_t oneshot_mods = 0;
static uint8_t oneshot_locked_mods = 0;
uint8_t
void
void
static uint16_t oneshot_time = 0;
bool
bool
/* oneshot layer */
/** \brief oneshot_layer_data bits
* LLLL LSSS
* where:
* L => are layer bits
* S => oneshot state bits
*/
static int8_t oneshot_layer_data = 0;
inline uint8_t
inline uint8_t
swap_hands_oneshot = SHO_OFF;
static uint16_t oneshot_layer_time = 0;
inline bool
static uint16_t oneshot_swaphands_time = 0;
inline bool
void
void
void
void
/** \brief Set oneshot layer
*
* FIXME: needs doc
*/
void
/** \brief Reset oneshot layer
*
* FIXME: needs doc
*/
void
/** \brief Clear oneshot layer
*
* FIXME: needs doc
*/
void
/** \brief Is oneshot layer active
*
* FIXME: needs doc
*/
bool
/** \brief set oneshot
*
* FIXME: needs doc
*/
void
/** \brief toggle oneshot
*
* FIXME: needs doc
*/
void
/** \brief enable oneshot
*
* FIXME: needs doc
*/
void
/** \brief disable oneshot
*
* FIXME: needs doc
*/
void
bool
/** \brief Send keyboard report
*
* FIXME: needs doc
*/
void
/** \brief Get mods
*
* FIXME: needs doc
*/
uint8_t
/** \brief add mods
*
* FIXME: needs doc
*/
void
/** \brief del mods
*
* FIXME: needs doc
*/
void
/** \brief set mods
*
* FIXME: needs doc
*/
void
/** \brief clear mods
*
* FIXME: needs doc
*/
void
/** \brief get weak mods
*
* FIXME: needs doc
*/
uint8_t
/** \brief add weak mods
*
* FIXME: needs doc
*/
void
/** \brief del weak mods
*
* FIXME: needs doc
*/
void
/** \brief set weak mods
*
* FIXME: needs doc
*/
void
/** \brief clear weak mods
*
* FIXME: needs doc
*/
void
/* macro modifier */
/** \brief get macro mods
*
* FIXME: needs doc
*/
uint8_t
/** \brief add macro mods
*
* FIXME: needs doc
*/
void
/** \brief del macro mods
*
* FIXME: needs doc
*/
void
/** \brief set macro mods
*
* FIXME: needs doc
*/
void
/** \brief clear macro mods
*
* FIXME: needs doc
*/
void
/** \brief get oneshot mods
*
* FIXME: needs doc
*/
uint8_t
void
void
/** \brief set oneshot mods
*
* FIXME: needs doc
*/
void
/** \brief clear oneshot mods
*
* FIXME: needs doc
*/
void
/** \brief Called when the one shot modifiers have been changed.
*
* \param mods Contains the active modifiers active after the change.
*/
void
/** \brief Called when the locked one shot modifiers have been changed.
*
* \param mods Contains the active modifiers active after the change.
*/
void
/** \brief Called when the one shot modifiers have been changed.
*
* \param mods Contains the active modifiers active after the change.
*/
void
/** \brief Called when the one shot modifiers have been changed.
*
* \param mods Contains the active modifiers active after the change.
*/
void
/** \brief Called when the one shot layers have been changed.
*
* \param layer Contains the layer that is toggled on, or zero when toggled off.
*/
void
/** \brief Called when the one shot layers have been changed.
*
* \param layer Contains the layer that is toggled on, or zero when toggled off.
*/
void
/** \brief inspect keyboard state
*
* FIXME: needs doc
*/
uint8_t