404f0c3f6fb1071232d2d0f042c95926c19a4714
[apps/native/gear-racing-controller.git] / inc / controller / controller_racing.h
1 /*
2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3 *
4 * Licensed under the Flora License, Version 1.1 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://floralicense.org/license/
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18 #ifndef CONTROLLER_CONTROLLER_RACING_H_
19 #define CONTROLLER_CONTROLLER_RACING_H_
20
21 #include "controller/controller_base.h"
22
23 typedef struct _s_controller_data {
24         float throttle;
25         float direction;
26         float cam_elevation;
27 } s_controller_data;
28
29 void controller_racing_init(t_view_update_cb view_update_cb);
30 void controller_racing_destroy(void);
31 void controller_racing_back(void);
32 void controller_racing_next();
33 void controller_racing_set_stop(bool stop);
34 void controller_racing_set_button_value(float button_value);
35
36 #endif /* CONTROLLER_CONTROLLER_RACING_H_ */