aboutsummaryrefslogtreecommitdiff
path: root/users/d4mation/zalgo.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/d4mation/zalgo.c')
-rw-r--r--users/d4mation/zalgo.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/users/d4mation/zalgo.c b/users/d4mation/zalgo.c
new file mode 100644
index 000000000..3a1688e05
--- /dev/null
+++ b/users/d4mation/zalgo.c
@@ -0,0 +1,21 @@
1#include "zalgo.h"
2
3void zalgo_text( uint16_t keycode ) {
4
5 tap_code( keycode );
6
7 int number = ( rand() % ( 8 + 1 - 2 ) ) + 2;
8 unsigned int index;
9
10 unicode_input_start();
11
12 for ( index = 0; index < number; index++ ) {
13
14 uint16_t hex = ( rand() % ( 0x036F + 1 - 0x0300 ) ) + 0x0300;
15 register_hex( hex );
16
17 }
18
19 unicode_input_finish();
20
21} \ No newline at end of file