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

Go to the source code of this file.

Functions

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

Variables

static uint32_t ticks = 0
 

Detailed Description

Range buttons API.

Author
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.

Parameters
xX position.
yY position.
valPointer to integer to update when one of the range buttons is clicked.
advanceHow much to advance 'val' by.
Returns
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
static

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

Definition at line 38 of file range_buttons.c.