Implement faux-clicky feature
This commit is contained in:
		
							parent
							
								
									a0c2305bd1
								
							
						
					
					
						commit
						c68e596f32
					
				
					 8 changed files with 184 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -33,6 +33,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#include "nodebug.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef FAUXCLICKY_ENABLE
 | 
			
		||||
#include <fauxclicky.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void action_exec(keyevent_t event)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -41,6 +44,16 @@ void action_exec(keyevent_t event)
 | 
			
		|||
        dprint("EVENT: "); debug_event(event); dprintln();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
#ifdef FAUXCLICKY_ENABLE
 | 
			
		||||
    if (IS_PRESSED(event)) {
 | 
			
		||||
        FAUXCLICKY_ACTION_PRESS;
 | 
			
		||||
    }
 | 
			
		||||
    if (IS_RELEASED(event)) {
 | 
			
		||||
        FAUXCLICKY_ACTION_RELEASE;
 | 
			
		||||
    }
 | 
			
		||||
    fauxclicky_check();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef ONEHAND_ENABLE
 | 
			
		||||
    if (!IS_NOEVENT(event)) {
 | 
			
		||||
        process_hand_swap(&event);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -51,6 +51,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#ifdef RGBLIGHT_ENABLE
 | 
			
		||||
#   include "rgblight.h"
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef FAUXCLICKY_ENABLE
 | 
			
		||||
#   include "fauxclicky.h"
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef SERIAL_LINK_ENABLE
 | 
			
		||||
#   include "serial_link/system/serial_link.h"
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -108,6 +111,9 @@ void keyboard_init(void) {
 | 
			
		|||
#ifdef RGBLIGHT_ENABLE
 | 
			
		||||
    rgblight_init();
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef FAUXCLICKY_ENABLE
 | 
			
		||||
    fauxclicky_init();
 | 
			
		||||
#endif
 | 
			
		||||
#if defined(NKRO_ENABLE) && defined(FORCE_NKRO)
 | 
			
		||||
    keymap_config.nkro = 1;
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue