device: Add keys and axes accessors

Allow retrieving the number of keys and axes, since we provide the API
to iterate over them both.
This commit is contained in:
Emmanuele Bassi
2011-01-18 16:13:26 +00:00
parent b662a070f2
commit 431200f40d
6 changed files with 38 additions and 14 deletions

View File

@ -258,8 +258,7 @@ translate_axes (ClutterInputDeviceX11 *device_x11,
{
ClutterInputAxis axis;
axis = _clutter_input_device_get_axis (device, i);
axis = clutter_input_device_get_axis (device, i);
switch (axis)
{
case CLUTTER_INPUT_AXIS_X: