Xiqual 0.9.1

In file xigfx/iarea.c:

ulong iarea_check

(inputarea* ia, int curx, int cury,
  Uint8 mousestate, Uint8 joystate)

Checks an inputarea against cursor position and controller buttons.

Documentation

Checks an inputarea against cursor position and controller buttons. If the supplied inputarea accepts the mouse/joybuttons currently pressed, the corresponding hook is called. An inputarea can respond to left, right and middle mousebutton for now.

If no buttons are pressed, the IA_PASS_HOOK function is called instead.

The ID is still returned if there is a delay that hasn't been finished yet.

Big fat FIXME: Xiqual doesn't currently actually initialise other controllers (joypads and sticks). Furthermore, the parameters should be expanded to allow for the hat.

Parameters:
- ia Inputarea to compare against cursor position
curx - Current cursor x coordinate
cury - Current cursor y coordinate
mousestate - Mask of currently pressed mousebuttons
joystate - Mask of currently pressed stick/pad buttons
Returns:
The inputarea's ID if a match was found.
Author:
Ronny Bangsund
See Also:
iarea_new()

Alphabetic index



This page was generated with the help of DOC++.