Reference

CL_InputButtonToAxis_Analog(3)

Converts two CL_InputButton's into one analog CL_InputAxis.

NAME

CL_InputButtonToAxis_Analog - Converts two CL_InputButton's into one analog CL_InputAxis.

CLASS MEMBERS

CL_InputButtonToAxis_Analog(
CL_InputButton *left,
CL_InputButton *right)

virtual float get_pos()

MEMBERS WITH DESCRIPTIONS

CL_InputButtonToAxis_Analog(
CL_InputButton *left,
CL_InputButton *right)

Description:

Constructs a button to axis converter using the two buttons left and right.

virtual float get_pos()
Description:

Returns the axis position.

Return value:

Current axis position.

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.