Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
Mouse Struct Reference

Structure to store mouse state. More...

#include <input.h>

Public Attributes

s32 x
 
s32 y
 
s32 lastX
 
s32 lastY
 
s32 dx
 
s32 dy
 
s8 scroll_x
 
s8 scroll_y
 
u8 pressed_button
 
u8 active_button
 
u8 released_button
 

Detailed Description

Structure to store mouse state.

This structure holds the current and last positions of the mouse, scroll wheel movements, and the states of mouse buttons.

Member Data Documentation

◆ x

s32 Mouse::x

The current x-coordinate of the mouse.

◆ y

s32 Mouse::y

The current y-coordinate of the mouse.

◆ lastX

s32 Mouse::lastX

The last x-coordinate of the mouse.

◆ lastY

s32 Mouse::lastY

The last y-coordinate of the mouse.

◆ dx

s32 Mouse::dx

The horizontal movement of the mouse.

◆ dy

s32 Mouse::dy

The vertical movement of the mouse.

◆ scroll_x

s8 Mouse::scroll_x

The horizontal scroll movement of the mouse.

◆ scroll_y

s8 Mouse::scroll_y

The vertical scroll movement of the mouse.

◆ pressed_button

u8 Mouse::pressed_button

Bitfield representing mouse buttons that were pressed.

◆ active_button

u8 Mouse::active_button

Bitfield representing currently active mouse buttons.

◆ released_button

u8 Mouse::released_button

Bitfield representing mouse buttons that were released.


The documentation for this struct was generated from the following file: