Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vnsee
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.8.2.
Show more breadcrumbs
Simon Castellan
vnsee
Commits
5b0c55e4
Verified
Commit
5b0c55e4
authored
4 years ago
by
Mattéo Delabre
Browse files
Options
Downloads
Patches
Plain Diff
Do not keep previous state in rmioc::input
parent
dadd81d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/rmioc/input.cpp
+1
-10
1 addition, 10 deletions
src/rmioc/input.cpp
src/rmioc/input.hpp
+0
-4
0 additions, 4 deletions
src/rmioc/input.hpp
with
1 addition
and
14 deletions
src/rmioc/input.cpp
+
1
−
10
View file @
5b0c55e4
...
...
@@ -47,11 +47,7 @@ bool input::fetch_events()
{
if
(
current_event
.
type
==
EV_SYN
)
{
if
(
!
has_changes
)
{
has_changes
=
true
;
this
->
previous_slots_state
=
this
->
slots_state
;
}
has_changes
=
true
;
for
(
const
input_event
&
event
:
this
->
pending_events
)
{
...
...
@@ -119,9 +115,4 @@ const input::slots_state_t& input::get_slots_state() const
return
this
->
slots_state
;
}
const
input
::
slots_state_t
&
input
::
get_previous_slots_state
()
const
{
return
this
->
previous_slots_state
;
}
}
// namespace rmioc
This diff is collapsed.
Click to expand it.
src/rmioc/input.hpp
+
0
−
4
View file @
5b0c55e4
...
...
@@ -52,7 +52,6 @@ public:
using
slots_state_t
=
std
::
map
<
int
,
slot_state
>
;
const
slots_state_t
&
get_slots_state
()
const
;
const
slots_state_t
&
get_previous_slots_state
()
const
;
private
:
/** File descriptor for the input device. */
...
...
@@ -64,9 +63,6 @@ private:
/** List of active touch point slots indexed by their ID. */
slots_state_t
slots_state
;
/** Previous state of active touch point slots. */
slots_state_t
previous_slots_state
;
/** Currently active touch point slot. */
int
current_slot
=
0
;
};
// class input
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment