BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
22f9c69f
Commit
22f9c69f
authored
Nov 21, 2017
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixes
parent
2f896ab0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
17 deletions
+12
-17
lv_conf_templ.h
lv_conf_templ.h
+0
-7
lv_hal_indev.h
lv_hal/lv_hal_indev.h
+0
-1
lv_hal_tick.c
lv_hal/lv_hal_tick.c
+1
-1
lv_indev.c
lv_obj/lv_indev.c
+7
-6
lv_indev.h
lv_obj/lv_indev.h
+2
-1
lv_obj.c
lv_obj/lv_obj.c
+2
-1
No files found.
lv_conf_templ.h
View file @
22f9c69f
...
...
@@ -7,15 +7,8 @@
#ifndef LV_CONF_H
#define LV_CONF_H
/**
* @file lv_conf.h
*
*/
#ifndef LV_CONF_H
#define LV_CONF_H
/*===================
Graphical settings
*=====================*/
...
...
lv_hal/lv_hal_indev.h
View file @
22f9c69f
...
...
@@ -53,7 +53,6 @@ typedef struct {
/*Initialized by the user and registered by 'lv_indev_add()'*/
typedef
struct
{
const
char
*
name
;
/*Input device name*/
lv_hal_indev_type_t
type
;
/*Input device type*/
bool
(
*
get_data
)(
lv_indev_data_t
*
data
);
/*Function pointer to read data. Return 'true' if there is still data to be read (buffered)*/
}
lv_indev_drv_t
;
...
...
lv_hal/lv_hal_tick.c
View file @
22f9c69f
...
...
@@ -6,7 +6,7 @@
/*********************
* INCLUDES
*********************/
#include
<lvgl/lv_hal/lv_hal_tick.h>
#include
"lv_hal_tick.h"
#include <stddef.h>
/*********************
...
...
lv_obj/lv_indev.c
View file @
22f9c69f
...
...
@@ -128,6 +128,7 @@ void lv_indev_set_cursor(lv_indev_t *indev, lv_obj_t *cur_obj)
lv_obj_set_pos
(
indev
->
cursor
,
indev
->
state
.
act_point
.
x
,
indev
->
state
.
act_point
.
y
);
}
#if LV_OBJ_GROUP
/**
* Set a destination group for a keypad input device
* @param indev pointer to an input device (type: 'LV_INDEV_TYPE_KEYPAD')
...
...
@@ -137,7 +138,7 @@ void lv_indev_set_group(lv_indev_t *indev, lv_group_t *group)
{
indev
->
group
=
group
;
}
#endif
/**
* Get the last point of an input device
...
...
@@ -281,12 +282,12 @@ static void indev_proc_task(void * param)
static
void
indev_proc_point
(
lv_indev_state_t
*
indev
)
{
if
(
indev
->
event
==
LV_INDEV_EVENT_PR
){
#if LV_INDEV_
TP
_MARKER != 0
#if LV_INDEV_
POINT
_MARKER != 0
area_t
area
;
area
.
x1
=
x
-
(
LV_INDEV_POINT_MARKER
>>
1
);
area
.
y1
=
y
-
(
LV_INDEV_POINT_MARKER
>>
1
);
area
.
x2
=
x
+
((
LV_INDEV_POINT_MARKER
>>
1
)
|
0x1
);
area
.
y2
=
y
+
((
LV_INDEV_POINT_MARKER
>>
1
)
|
0x1
);
area
.
x1
=
(
indev
->
act_point
.
x
>>
LV_ANTIALIAS
)
-
(
LV_INDEV_POINT_MARKER
>>
1
);
area
.
y1
=
(
indev
->
act_point
.
y
>>
LV_ANTIALIAS
)
-
(
LV_INDEV_POINT_MARKER
>>
1
);
area
.
x2
=
(
indev
->
act_point
.
x
>>
LV_ANTIALIAS
)
+
((
LV_INDEV_POINT_MARKER
>>
1
)
|
0x1
);
area
.
y2
=
(
indev
->
act_point
.
y
>>
LV_ANTIALIAS
)
+
((
LV_INDEV_POINT_MARKER
>>
1
)
|
0x1
);
lv_rfill
(
&
area
,
NULL
,
COLOR_MAKE
(
0xFF
,
0
,
0
),
OPA_COVER
);
#endif
indev_proc_press
(
indev
);
...
...
lv_obj/lv_indev.h
View file @
22f9c69f
...
...
@@ -66,13 +66,14 @@ void lv_indev_enable(lv_hal_indev_type_t type, bool enable);
*/
void
lv_indev_set_cursor
(
lv_indev_t
*
indev
,
lv_obj_t
*
cur_obj
);
#if LV_OBJ_GROUP
/**
* Set a destination group for a keypad input device
* @param indev pointer to an input device (type: 'LV_INDEV_TYPE_KEYPAD')
* @param group point to a group
*/
void
lv_indev_set_group
(
lv_indev_t
*
indev
,
lv_group_t
*
group
);
#endif
/**
* Get the last point of an input device
* @param indev pointer to an input device
...
...
lv_obj/lv_obj.c
View file @
22f9c69f
...
...
@@ -7,13 +7,14 @@
* INCLUDES
*********************/
#include <lvgl/lv_obj/lv_indev.h>
#include "lv_conf.h"
#include "lv_obj.h"
#include "lv_indev.h"
#include "../lv_draw/lv_draw.h"
#include "../lv_draw/lv_draw_rbasic.h"
#include "lv_refr.h"
#include "lv_group.h"
#include "misc/misc.h"
#include "misc/gfx/anim.h"
#include <stdint.h>
#include <string.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment