~ruther/qmk_firmware

ref: f7cf066e0fe0a7063e54ac070318eb6145f040b2 qmk_firmware/users/d4mation/zalgo.c -rw-r--r-- 352 bytes
f7cf066e — dependabot[bot] Bump tj-actions/changed-files from 37 to 38 (#21822) 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();

}
Do not follow this link