Skip to content

Instantly share code, notes, and snippets.

View syureri's full-sized avatar
⚙️
I may be slow to respond.

Syureri syureri

⚙️
I may be slow to respond.
View GitHub Profile
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active June 11, 2024 23:38 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@luluco250
luluco250 / MouseRaw.cpp
Last active April 16, 2024 08:51
Getting raw mouse input with the native Windows API
/*
Example of how to get raw mouse input data using the native Windows API
through a "message-only" window that outputs to an allocated console window.
Not prepared for Unicode.
I don't recommend copy/pasting this, understand it before integrating it.
*/
// Make Windows.h slightly less of a headache.
#define NOMINMAX