| 504 |
theseven |
1 |
//
|
|
|
2 |
//
|
|
|
3 |
// Copyright 2011 TheSeven
|
|
|
4 |
//
|
|
|
5 |
//
|
|
|
6 |
// This file is part of emCORE.
|
|
|
7 |
//
|
|
|
8 |
// emCORE is free software: you can redistribute it and/or
|
|
|
9 |
// modify it under the terms of the GNU General Public License as
|
|
|
10 |
// published by the Free Software Foundation, either version 2 of the
|
|
|
11 |
// License, or (at your option) any later version.
|
|
|
12 |
//
|
|
|
13 |
// emCORE is distributed in the hope that it will be useful,
|
|
|
14 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
15 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
16 |
// See the GNU General Public License for more details.
|
|
|
17 |
//
|
|
|
18 |
// You should have received a copy of the GNU General Public License along
|
|
|
19 |
// with emCORE. If not, see <http://www.gnu.org/licenses/>.
|
|
|
20 |
//
|
|
|
21 |
//
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
#ifndef __CHOOSER_ACTION_HANDLER_WHEEL_H__
|
|
|
25 |
#define __CHOOSER_ACTION_HANDLER_WHEEL_H__
|
|
|
26 |
|
|
|
27 |
#include "emcorelib.h"
|
|
|
28 |
#include "libui.h"
|
|
|
29 |
#include "chooser.h"
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
enum chooser_action_handler_wheel_action
|
|
|
33 |
{
|
|
|
34 |
CHOOSER_ACTION_HANDLER_WHEEL_ACTION_NONE = 0,
|
|
|
35 |
CHOOSER_ACTION_HANDLER_WHEEL_ACTION_PREV,
|
|
|
36 |
CHOOSER_ACTION_HANDLER_WHEEL_ACTION_NEXT,
|
|
|
37 |
CHOOSER_ACTION_HANDLER_WHEEL_ACTION_SELECT,
|
|
|
38 |
CHOOSER_ACTION_HANDLER_WHEEL_ACTION_CANCEL
|
|
|
39 |
};
|
|
|
40 |
|
|
|
41 |
#define CHOOSER_ACTION_HANDLER_WHEEL_PARAMS_VERSION 1
|
|
|
42 |
|
|
|
43 |
struct chooser_action_handler_wheel_params
|
|
|
44 |
{
|
|
|
45 |
int version;
|
|
|
46 |
int stepsperitem;
|
|
|
47 |
bool (*eventfilter)(struct chooser_data* data, enum button_event event, int which, int value);
|
|
|
48 |
int buttoncount;
|
|
|
49 |
enum chooser_action_handler_wheel_action buttonmap[];
|
|
|
50 |
};
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
extern const struct chooser_action_handler chooser_action_handler_wheel;
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
#endif
|