-
released this
2026-02-07 13:25:40 +00:00 | 9 commits to main since this release🎮 v0.0.6-beta - Interactive Input & Keyboard Control
This update introduces real-time keyboard interaction capabilities, making PCC suitable for simple game development and interactive CLI tools. It includes a new
Inputlibrary and system-level_getchsupport.✨ New Features
- Real-time Input: Added
read_key()system call (wrapping_getch), which captures keystrokes instantly without waiting for ENTER. - Input Standard Library (
std/Input.pcc):- Key codes for Arrows (UP, DOWN, LEFT, RIGHT).
- Key codes for WASD gaming controls.
- Special keys: ESC, ENTER, SPACE, TAB, BACKSPACE.
- Function keys: F1 - F10.
- Helper functions:
WaitForSpecificKey(int key)to block execution until a specific key is pressed.
- Void Return Fix: Fixed parser issues with
return;in void functions (now safely compiles to return 0/empty).
🛠 Improvements
- Expanded CodeGen:
CALLinstruction now supportsread_keyand special system hooks. - Documentation: Updated with a new "Input & Keys" section and interactive examples.
📦 How to use:
- Download the latest release from the Assets section below.
- Unzip the archive to
C:/PCC/. - Run
setup.batas Administrator. - Compile your code from anywhere:
PCC.exe file.pcc
Downloads
- Real-time Input: Added