forked from gpiozero/gpiozero
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds when_held event hook to Button (via extension of the EventsMixin class)
- Loading branch information
1 parent
f746ecb
commit 9e2cde4
Showing
4 changed files
with
129 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ | |
SourceMixin, | ||
ValuesMixin, | ||
EventsMixin, | ||
RepeatingMixin, | ||
) | ||
from .input_devices import ( | ||
InputDevice, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters