Swap position/point names

A point is a 2D vector. A position represent a point relative to the
screen size.
This commit is contained in:
Romain Vimont
2018-01-29 14:52:22 +01:00
parent f70359f14f
commit 879941355d
15 changed files with 109 additions and 109 deletions

View File

@@ -51,8 +51,8 @@ static void test_serialize_mouse_event() {
.mouse_event = {
.action = AMOTION_EVENT_ACTION_DOWN,
.buttons = AMOTION_EVENT_BUTTON_PRIMARY,
.point = {
.position = {
.position = {
.point = {
.x = 260,
.y = 1026,
},
@@ -82,8 +82,8 @@ static void test_serialize_scroll_event() {
struct control_event event = {
.type = CONTROL_EVENT_TYPE_SCROLL,
.scroll_event = {
.point = {
.position = {
.position = {
.point = {
.x = 260,
.y = 1026,
},