You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
352 B

  1. #include "zalgo.h"
  2. void zalgo_text( uint16_t keycode ) {
  3. tap_code( keycode );
  4. int number = ( rand() % ( 8 + 1 - 2 ) ) + 2;
  5. unsigned int index;
  6. unicode_input_start();
  7. for ( index = 0; index < number; index++ ) {
  8. uint16_t hex = ( rand() % ( 0x036F + 1 - 0x0300 ) ) + 0x0300;
  9. register_hex( hex );
  10. }
  11. unicode_input_finish();
  12. }