Skip to content

Commit

Permalink
Release v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Jul 20, 2023
1 parent a7a6228 commit 3e00cda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Features:
- 24 bit RGB
- Indexed color mode: 16 Background colors, 16 foreground colors, bold and underline
- Non-blocking input from terminal
- Mouse tracking

### Gallery

Expand Down Expand Up @@ -73,3 +74,7 @@ Renders a texture-mapped cube.
Renders overlapping red, green, and blue circles.
- 24 bit RGB
- Text rendering
7. Mouse\
Displays mouse position and button state.
- Mouse tracking
- Text rendering
5 changes: 3 additions & 2 deletions termgl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extern "C" {
#endif

#define TGL_VERSION_MAJOR 1
#define TGL_VERSION_MINOR 3
#define TGL_VERSION_MINOR 4

#include <stdbool.h>
#include <stdint.h>
Expand Down Expand Up @@ -358,7 +358,8 @@ typedef struct TGLMouseEvent {
/**
* Reads up to count bytes from raw terminal input into buf and optionally reads count_events mouse events
* If mouse tracking is enabled but event_buf==NULL, buf may contain Xterm control sequences
* @param event_buf: Pass NULL if mouse tracking is disableda
* If mouse tracking is enabled, ensure sizeof(buf) >= count_events * 6
* @param event_buf: Pass NULL if mouse tracking is disabled
* @param count_events: Length of event_buf
* @param count_read_events: Gets set to number of mouse events read
* @return number of bytes read on success, negative value on failure
Expand Down

0 comments on commit 3e00cda

Please sign in to comment.