Use Win32 API to enable mouse input and to make all input events input as ansi codes.
The context manager that handles this is only imported on windows otherwise a dummy context manager is used. This is because the console mode needs to be set up before the getch loop.
Tested on both windows and linux and the input works.
Use Win32 API to enable mouse input and to make all input events input as ansi codes.
The context manager that handles this is only imported on windows otherwise a dummy context manager is used. This is because the console mode needs to be set up before the
getch
loop.Tested on both windows and linux and the input works.