Skip to content

Commit

Permalink
fix: specify tag name for keypress event
Browse files Browse the repository at this point in the history
- The source of the event received by the keypress_buffer is usually "keypress_parser" tag,
  but if fusuma-plugin-remap is installed as a dependency, it will be "remap_keyboard_input" with plugin_default.
  • Loading branch information
iberianpig committed Sep 6, 2023
1 parent 5f08871 commit 05ff48d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/fusuma/plugin/detectors/thumbsense_detector_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def thumbsense_generator(finger:, status:, time: Time.now)
def keypress_generator(code:, status:, time: Time.now)
Events::Event.new(
time: time,
tag: "keypress_parser",
# NOTE: "remap_keyboard_input" is the original key event obtained from fusuma-plugin-remap
# The source of the event received by the keypress_buffer is usually "keypress_parser" tag,
# but if fusuma-plugin-remap is installed as a dependency, it will be "remap_keyboard_input" with plugin_default.
tag: "remap_keyboard_input",
record: Events::Records::KeypressRecord.new(
code: code,
status: status
Expand Down

0 comments on commit 05ff48d

Please sign in to comment.