Atrinik Client  4.0
Functions | Variables
range_buttons.c File Reference
#include <global.h>

Go to the source code of this file.


int range_buttons_show (int x, int y, int *val, int advance)


static uint32_t ticks = 0

Detailed Description

Range buttons API.

Alex Tokar

Definition in file range_buttons.c.

Function Documentation

int range_buttons_show ( int  x,
int  y,
int *  val,
int  advance 

Show the range buttons.

xX position.
yY position.
valPointer to integer to update when one of the range buttons is clicked.
advanceHow much to advance 'val' by.
1 if one of the buttons was clicked, 0 otherwise.

Definition at line 54 of file range_buttons.c.

Variable Documentation

uint32_t ticks = 0

Last clicked ticks to prevent single button click from triggering many actions at once.

Definition at line 38 of file range_buttons.c.