# List of system variables

**URL:** https://discourse.processing.org/t/list-of-system-variables/46924
**Category:** Beginners
**Created:** [August 13, 2025, 6:58pm UTC](https://discourse.processing.org/t/list-of-system-variables/46924 "2025-08-13T18:58:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jdiodato](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jdiodato/32/21010_2.png) [@jdiodato](https://discourse.processing.org/u/jdiodato)
#### Post date: [August 13, 2025, 6:58pm UTC](https://discourse.processing.org/t/list-of-system-variables/46924/1 "2025-08-13T18:58:57Z")

</div>

Does anyone know if there’s a list of system variables somewhere in the p5 docs? I found this [page](https://p5js.org/tutorials/variables-and-change/) in the docs that goes over `mouseX` and `mouseY`, but the AI overview from a quick [Google search](https://www.google.com/search?q=p5+js+system+variables&oq=p5+js+system+variables&gs_lcrp=EgZjaHJvbWUyCQgAEEUYORigATIGCAEQRRg80gEIMzM3MWowajeoAgCwAgA&sourceid=chrome&ie=UTF-8) also pulls up a ton of others that I’m not seeing listed out:

- `mouseX`: Current horizontal location of the mouse pointer.

- `mouseY`: Current vertical location of the mouse pointer.

- `pmouseX`: Previous horizontal location of the mouse pointer (from the last frame).

- `pmouseY`: Previous vertical location of the mouse pointer (from the last frame).

- `mouseIsPressed`: A boolean value that is `true` when a mouse button is pressed and `false` otherwise.

- **Keyboard-related:**

- **Canvas and Window dimensions:**

- **Other:**

---

<div class="post-metadata">

### Author: ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)
#### Post date: [August 14, 2025, 6:20am UTC](https://discourse.processing.org/t/list-of-system-variables/46924/2 "2025-08-14T06:20:39Z")

</div>

Hi @jdiodato,

sure! you can nearly all find here …

> **[Reference](https://p5js.org/reference/)**
>
> Find easy explanations for every piece of p5.js code.

Cheers  
— mnse
