Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit 5b0c55e4 authored by Mattéo Delabre's avatar Mattéo Delabre
Browse files

Do not keep previous state in rmioc::input

parent dadd81d9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment