Mercurial > louis > kiibohd-controller
comparison Macro/PartialMap/trigger.h @ 433:0f7a6b593dc4
Initial refactoring of PartialMap for supporting custom Triggers
- Requires a recent KLL
- Functionality wise, nothing has changed
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sun, 08 May 2016 18:50:28 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
432:1a2fb67b0237 | 433:0f7a6b593dc4 |
---|---|
1 /* Copyright (C) 2014-2016 by Jacob Alexander | |
2 * | |
3 * This file is free software: you can redistribute it and/or modify | |
4 * it under the terms of the GNU General Public License as published by | |
5 * the Free Software Foundation, either version 3 of the License, or | |
6 * (at your option) any later version. | |
7 * | |
8 * This file is distributed in the hope that it will be useful, | |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 * GNU General Public License for more details. | |
12 * | |
13 * You should have received a copy of the GNU General Public License | |
14 * along with this file. If not, see <http://www.gnu.org/licenses/>. | |
15 */ | |
16 | |
17 #pragma once | |
18 | |
19 // ----- Includes ----- | |
20 | |
21 // Compiler Includes | |
22 #include <stdint.h> | |
23 | |
24 | |
25 | |
26 // ----- Functions ----- | |
27 | |
28 // Updates trigger state, but does not add event to processing queue | |
29 void Trigger_state( uint8_t type, uint8_t state, uint8_t index ); | |
30 | |
31 // Updates trigger state, adds event to processing queue | |
32 // If event was already added this cycle, it will be discarded, state is not updated, and returns 0 | |
33 // Returns 1 otherwise | |
34 uint8_t Trigger_update( uint8_t type, uint8_t state, uint8_t index ); | |
35 | |
36 void Trigger_process(); | |
37 void Trigger_setup(); | |
38 |