forked from mirrors/qmk_userspace
[Keymap] Added userspace for d4mation. Included their keymap for the Atreus62 (#7483)
* Added userspace for d4mation. Included their keymap for the Atreus62 * Do not assign layer numbers manually * Remove some unneeded things per @drashna's recommendation * Fix some single line comments I missed * Update unicode macros to use send_unicode_hex_string() instead of process_unicode() * OBetter check for Unicode Enabled. Moved some checks into macros.c * Use eeconfig_init_user() to set default unicode input mode
This commit is contained in:
parent
b2405fccce
commit
f42dd61b8d
15 changed files with 563 additions and 0 deletions
21
users/d4mation/zalgo.c
Normal file
21
users/d4mation/zalgo.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include "zalgo.h"
|
||||
|
||||
void zalgo_text( uint16_t keycode ) {
|
||||
|
||||
tap_code( keycode );
|
||||
|
||||
int number = ( rand() % ( 8 + 1 - 2 ) ) + 2;
|
||||
unsigned int index;
|
||||
|
||||
unicode_input_start();
|
||||
|
||||
for ( index = 0; index < number; index++ ) {
|
||||
|
||||
uint16_t hex = ( rand() % ( 0x036F + 1 - 0x0300 ) ) + 0x0300;
|
||||
register_hex( hex );
|
||||
|
||||
}
|
||||
|
||||
unicode_input_finish();
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue