forked from mfulz_github/qmk_firmware
		
	wip
This commit is contained in:
		
							parent
							
								
									f513a9193c
								
							
						
					
					
						commit
						c4aa18363e
					
				| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -38,13 +38,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -15,13 +15,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -15,13 +15,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,12 +35,17 @@ void matrix_scan_kb(void) { | |||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||||||
|     // put your per-action keyboard code here
 |     // put your per-action keyboard code here
 | ||||||
|     // runs for every action, just before processing by the firmware
 |     // runs for every action, just before processing by the firmware
 | ||||||
|  |     /* FIXME(skullydazed): 
 | ||||||
|  |      *     Originally this code always ran no matter what process_record_user() did. | ||||||
|  |      *     With this PR it will only run if process_record_user() returns true. We | ||||||
|  |      *     should think through the implications here. | ||||||
|  |      */ | ||||||
|     if (record->event.pressed) { |     if (record->event.pressed) { | ||||||
|     #ifdef LED_ENABLE | #ifdef LED_ENABLE | ||||||
|         serial_send((record->event.key.row*16)+record->event.key.col); |         serial_send((record->event.key.row*16)+record->event.key.col); | ||||||
|     #endif | #endif | ||||||
|     } |     } | ||||||
| 	return process_record_user(keycode, record); |     return true;   | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -179,13 +179,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 	 | 	 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -15,10 +15,6 @@ | |||||||
|  */ |  */ | ||||||
| #include "al1.h" | #include "al1.h" | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|     CONFIG_LED_IO; |     CONFIG_LED_IO; | ||||||
|     print_dec(usb_led); |     print_dec(usb_led); | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | 	if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||||||
| 		DDRB |= (1 << 7); | 		DDRB |= (1 << 7); | ||||||
|  | |||||||
| @ -32,13 +32,6 @@ void matrix_scan_kb(void) { | |||||||
|     matrix_scan_user(); |     matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -57,13 +57,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
|     matrix_scan_user(); |     matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -177,11 +177,6 @@ uint32_t layer_state_set_kb(uint32_t state) { | |||||||
|   return state; |   return state; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   queue_for_send = true; |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void encoder_update_kb(uint8_t index, bool clockwise) { | void encoder_update_kb(uint8_t index, bool clockwise) { | ||||||
|   encoder_value = (encoder_value + (clockwise ? 1 : -1)) % 64; |   encoder_value = (encoder_value + (clockwise ? 1 : -1)) % 64; | ||||||
|   queue_for_send = true; |   queue_for_send = true; | ||||||
|  | |||||||
| @ -14,13 +14,6 @@ void matrix_scan_kb(void) { | |||||||
|     matrix_scan_user(); |     matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|     DDRB |= (1<<7); |     DDRB |= (1<<7); | ||||||
|     DDRC |= (1<<5) | (1<<6); |     DDRC |= (1<<5) | (1<<6); | ||||||
|  | |||||||
| @ -22,13 +22,6 @@ __attribute__ ((weak)) | |||||||
| void matrix_scan_user(void) { | void matrix_scan_user(void) { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
|     CONFIG_LED_IO; |     CONFIG_LED_IO; | ||||||
|  | |||||||
| @ -14,13 +14,6 @@ void matrix_scan_kb(void) { | |||||||
|     matrix_scan_user(); |     matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|     DDRB |= (1<<7); |     DDRB |= (1<<7); | ||||||
|     DDRC |= (1<<5) | (1<<6); |     DDRC |= (1<<5) | (1<<6); | ||||||
|  | |||||||
| @ -29,12 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // C5 left
 | // C5 left
 | ||||||
| // C6 middle led
 | // C6 middle led
 | ||||||
| // B7 right led
 | // B7 right led
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
|     matrix_scan_user(); |     matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -40,12 +40,6 @@ void matrix_scan_kb(void) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 | 
 | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
|  | |||||||
| @ -247,6 +247,11 @@ uint32_t layer_state_set_kb(uint32_t state) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||||||
|  |     /* FIXME(skullydazed):
 | ||||||
|  |      *     Originally this code always ran no matter what process_record_user() did. | ||||||
|  |      *     With this PR it will only run if process_record_user() returns true. We | ||||||
|  |      *     should think through the implications here. | ||||||
|  |      */ | ||||||
|   queue_for_send = true; |   queue_for_send = true; | ||||||
|   switch (keycode) { |   switch (keycode) { | ||||||
|     case OLED_TOGG: |     case OLED_TOGG: | ||||||
| @ -291,7 +296,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||||||
|       break; |       break; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return process_record_user(keycode, record); |   return true; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -78,6 +78,11 @@ void matrix_scan_kb(void) | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||||||
|  |     /* FIXME(skullydazed):
 | ||||||
|  |      *     Originally this code always ran no matter what process_record_user() did. | ||||||
|  |      *     With this PR it will only run if process_record_user() returns true. We | ||||||
|  |      *     should think through the implications here. | ||||||
|  |      */ | ||||||
|   switch (keycode) { |   switch (keycode) { | ||||||
|     case BL_INC: |     case BL_INC: | ||||||
|       if (record->event.pressed) { |       if (record->event.pressed) { | ||||||
| @ -123,7 +128,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||||||
|         break; |         break; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return process_record_user(keycode, record);; |   return true; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #ifdef VIA_ENABLE | #ifdef VIA_ENABLE | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -16,12 +16,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 	led_set_user(usb_led); | 	led_set_user(usb_led); | ||||||
|  | |||||||
| @ -28,13 +28,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -16,12 +16,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 	led_set_user(usb_led); | 	led_set_user(usb_led); | ||||||
|  | |||||||
| @ -16,12 +16,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
|   led_set_user(usb_led); |   led_set_user(usb_led); | ||||||
|  | |||||||
| @ -2,9 +2,14 @@ | |||||||
| #include "ssd1306.h" | #include "ssd1306.h" | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||||||
|  |     /* FIXME(skullydazed):
 | ||||||
|  |      *     Originally this code always ran no matter what process_record_user() did. | ||||||
|  |      *     With this PR it will only run if process_record_user() returns true. We | ||||||
|  |      *     should think through the implications here. | ||||||
|  |      */ | ||||||
| #ifdef SSD1306OLED | #ifdef SSD1306OLED | ||||||
|   return process_record_gfx(keycode,record) && process_record_user(keycode, record); |   return process_record_gfx(keycode,record); | ||||||
| #else | #else | ||||||
|   return process_record_user(keycode, record); |   return true; | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
|  | |||||||
| @ -29,10 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // Toggle numlock as needed
 |   // Toggle numlock as needed
 | ||||||
| 	if (usb_led & (1<<USB_LED_NUM_LOCK)) { | 	if (usb_led & (1<<USB_LED_NUM_LOCK)) { | ||||||
|  | |||||||
| @ -17,13 +17,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -39,13 +39,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   /* put your per-action keyboard code here
 |  | ||||||
|    * runs for every action, just before processing by the firmware */ |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   if (usb_led & (1<<USB_LED_NUM_LOCK)) { |   if (usb_led & (1<<USB_LED_NUM_LOCK)) { | ||||||
|     writePinLow(B4); |     writePinLow(B4); | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -30,13 +30,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,9 +1,14 @@ | |||||||
| #include "crkbd.h" | #include "crkbd.h" | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||||||
|  |     /* FIXME(skullydazed):
 | ||||||
|  |      *     Originally this code always ran no matter what process_record_user() did. | ||||||
|  |      *     With this PR it will only run if process_record_user() returns true. We | ||||||
|  |      *     should think through the implications here. | ||||||
|  |      */ | ||||||
| #ifdef SSD1306OLED | #ifdef SSD1306OLED | ||||||
|   return process_record_gfx(keycode,record) && process_record_user(keycode, record); |   return process_record_gfx(keycode,record); | ||||||
| #else | #else | ||||||
|   return process_record_user(keycode, record); |   return true; | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
|  | |||||||
| @ -86,6 +86,11 @@ void click(uint16_t freq, uint16_t duration){ | |||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t* record) | bool process_record_kb(uint16_t keycode, keyrecord_t* record) | ||||||
| { | { | ||||||
|  |     /* FIXME(skullydazed):
 | ||||||
|  |      *     Originally this code always ran no matter what process_record_user() did. | ||||||
|  |      *     With this PR it will only run if process_record_user() returns true. We | ||||||
|  |      *     should think through the implications here. | ||||||
|  |      */ | ||||||
|     // Test code that turns on the switch led for the key that is pressed
 |     // Test code that turns on the switch led for the key that is pressed
 | ||||||
|     // set_backlight_by_keymap(record->event.key.col, record->event.key.row);
 |     // set_backlight_by_keymap(record->event.key.col, record->event.key.row);
 | ||||||
|     if (click_toggle && record->event.pressed){ |     if (click_toggle && record->event.pressed){ | ||||||
| @ -95,7 +100,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) | |||||||
|         reset_keyboard_kb(); |         reset_keyboard_kb(); | ||||||
|     } else { |     } else { | ||||||
|     } |     } | ||||||
|     return process_record_user(keycode, record); |     return true; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void action_function(keyrecord_t *event, uint8_t id, uint8_t opt) | void action_function(keyrecord_t *event, uint8_t id, uint8_t opt) | ||||||
|  | |||||||
| @ -29,10 +29,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { |   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||||||
|         writePinLow(B3); |         writePinLow(B3); | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -30,13 +30,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
|   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { |   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||||||
|  | |||||||
| @ -36,13 +36,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
|   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { |   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -161,11 +161,7 @@ webusb_pos_t webusb_keymap[] = { | |||||||
| }; | }; | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #ifndef RAW_ENABLE |  | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||||||
| #else |  | ||||||
| bool process_record_user(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| #endif |  | ||||||
|   if (record->event.pressed) { |   if (record->event.pressed) { | ||||||
|     switch(keycode) { |     switch(keycode) { | ||||||
|     #ifdef RGBLIGHT_ENABLE |     #ifdef RGBLIGHT_ENABLE | ||||||
|  | |||||||
| @ -59,7 +59,3 @@ void led_set_kb(uint8_t usb_led) { | |||||||
| 
 | 
 | ||||||
|   indicator_leds_set(status); |   indicator_leds_set(status); | ||||||
| } | } | ||||||
| 
 |  | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
|  | |||||||
| @ -122,15 +122,6 @@ void backlight_set(uint8_t level) | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| void backlight_update_state() | void backlight_update_state() | ||||||
| { | { | ||||||
|   cli(); |   cli(); | ||||||
|  | |||||||
| @ -54,7 +54,3 @@ void led_set_kb(uint8_t usb_led) { | |||||||
| 
 | 
 | ||||||
|   led_set_user(usb_led); |   led_set_user(usb_led); | ||||||
| } | } | ||||||
| 
 |  | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
|  | |||||||
| @ -44,7 +44,3 @@ void led_set_kb(uint8_t usb_led) { | |||||||
|   backlight_os_state & (1<<USB_LED_CAPS_LOCK) ? (PORTB &= ~0b00000001) : (PORTB |= 0b00000001); |   backlight_os_state & (1<<USB_LED_CAPS_LOCK) ? (PORTB &= ~0b00000001) : (PORTB |= 0b00000001); | ||||||
|   backlight_os_state & (1<<USB_LED_SCROLL_LOCK) ? (PORTB &= ~0b00010000) : (PORTB |= 0b00010000); |   backlight_os_state & (1<<USB_LED_SCROLL_LOCK) ? (PORTB &= ~0b00010000) : (PORTB |= 0b00010000); | ||||||
| } | } | ||||||
| 
 |  | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
|  | |||||||
| @ -111,7 +111,3 @@ void led_set_kb(uint8_t usb_led) { | |||||||
|   backlight_os_state & (1<<USB_LED_CAPS_LOCK) ? (PORTB &= ~0b00000001) : (PORTB |= 0b00000001); |   backlight_os_state & (1<<USB_LED_CAPS_LOCK) ? (PORTB &= ~0b00000001) : (PORTB |= 0b00000001); | ||||||
|   backlight_os_state & (1<<USB_LED_SCROLL_LOCK) ? (PORTB &= ~0b00010000) : (PORTB |= 0b00010000); |   backlight_os_state & (1<<USB_LED_SCROLL_LOCK) ? (PORTB &= ~0b00010000) : (PORTB |= 0b00010000); | ||||||
| } | } | ||||||
| 
 |  | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
|  | |||||||
| @ -37,7 +37,3 @@ bool led_update_kb(led_t led_state) { | |||||||
|     } |     } | ||||||
|     return true; |     return true; | ||||||
| } | } | ||||||
| 
 |  | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
|  | |||||||
| @ -69,13 +69,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -337,6 +337,11 @@ void keyboard_post_init_kb(void) { | |||||||
| 
 | 
 | ||||||
| #ifdef ORYX_CONFIGURATOR | #ifdef ORYX_CONFIGURATOR | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||||||
|  |     /* FIXME(skullydazed):
 | ||||||
|  |      *     Originally this code always ran no matter what process_record_user() did. | ||||||
|  |      *     With this PR it will only run if process_record_user() returns true. We | ||||||
|  |      *     should think through the implications here. | ||||||
|  |      */ | ||||||
|     switch (keycode) { |     switch (keycode) { | ||||||
|         case LED_LEVEL: |         case LED_LEVEL: | ||||||
|             if (record->event.pressed) { |             if (record->event.pressed) { | ||||||
| @ -378,7 +383,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||||||
|             return false; |             return false; | ||||||
| #endif | #endif | ||||||
|     } |     } | ||||||
|     return process_record_user(keycode, record); |     return true; | ||||||
| } | } | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -26,13 +26,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -13,13 +13,6 @@ void matrix_scan_kb(void) { | |||||||
|     matrix_scan_user(); |     matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_init_ports(void) { | void led_init_ports(void) { | ||||||
|     DDRB |= (1<<6) | (1<<7); // OUT
 |     DDRB |= (1<<6) | (1<<7); // OUT
 | ||||||
| } | } | ||||||
|  | |||||||
| @ -14,13 +14,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_user(uint8_t usb_led) { | void led_set_user(uint8_t usb_led) { | ||||||
| 	if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | 	if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||||||
| 		DDRB |= (1 << 7);  | 		DDRB |= (1 << 7);  | ||||||
|  | |||||||
| @ -14,13 +14,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 	DDRB |= (1<<6); | 	DDRB |= (1<<6); | ||||||
|  | |||||||
| @ -9,10 +9,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   if (usb_led & (1 << USB_LED_CAPS_LOCK)) { |   if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||||||
|     writePinHigh(F0); |     writePinHigh(F0); | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|     matrix_scan_user(); |     matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| bool led_update_kb(led_t led_state) { | bool led_update_kb(led_t led_state) { | ||||||
|     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -38,13 +38,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|     if (usb_led & (1<<USB_LED_CAPS_LOCK)) { |     if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||||||
|         PORTB &= ~(1<<6); |         PORTB &= ~(1<<6); | ||||||
|  | |||||||
| @ -39,13 +39,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|     if (usb_led & (1<<USB_LED_NUM_LOCK)) { |     if (usb_led & (1<<USB_LED_NUM_LOCK)) { | ||||||
|         PORTB |=  (1<<4); |         PORTB |=  (1<<4); | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -32,13 +32,6 @@ void matrix_scan_kb(void) { | |||||||
|     matrix_scan_user(); |     matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|     // put your per-action keyboard code here
 |  | ||||||
|     // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|     return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| bool led_update_kb(led_t led_state) { | bool led_update_kb(led_t led_state) { | ||||||
|     if(led_update_user(led_state)) { |     if(led_update_user(led_state)) { | ||||||
|         writePin(E6, !led_state.caps_lock); |         writePin(E6, !led_state.caps_lock); | ||||||
|  | |||||||
| @ -34,13 +34,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -35,13 +35,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -39,10 +39,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void suspend_power_down_kb(void) | void suspend_power_down_kb(void) | ||||||
| { | { | ||||||
|     rgb_matrix_set_suspend_state(true); |     rgb_matrix_set_suspend_state(true); | ||||||
|  | |||||||
| @ -29,13 +29,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -30,13 +30,6 @@ void matrix_scan_kb(void) { | |||||||
| 	matrix_scan_user(); | 	matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
| 	// put your per-action keyboard code here
 |  | ||||||
| 	// runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
| 	return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
| 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | 	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
|   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { |   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||||||
|  | |||||||
| @ -38,13 +38,6 @@ void matrix_scan_kb(void) { | |||||||
|   matrix_scan_user(); |   matrix_scan_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void led_set_kb(uint8_t usb_led) { | void led_set_kb(uint8_t usb_led) { | ||||||
|   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 |   // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -28,13 +28,6 @@ void matrix_init_kb(void) { | |||||||
|   matrix_init_user(); |   matrix_init_user(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |  | ||||||
|   // put your per-action keyboard code here
 |  | ||||||
|   // runs for every action, just before processing by the firmware
 |  | ||||||
| 
 |  | ||||||
|   return process_record_user(keycode, record); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| bool led_update_kb(led_t led_state) { | bool led_update_kb(led_t led_state) { | ||||||
|   if(led_update_user(led_state)) { |   if(led_update_user(led_state)) { | ||||||
|     writePin(C7, !led_state.caps_lock); |     writePin(C7, !led_state.caps_lock); | ||||||
|  | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 skullY
						skullY