summaryrefslogtreecommitdiff
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 0000000000..3a1688e053
--- /dev/null
+++ b/users/d4mation/zalgo.c
@@ -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();
+
+} \ No newline at end of file