-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
50 additions
and
32 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
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
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
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import nuimo | ||
import logging | ||
|
||
class PrintingControllerListener(nuimo.ControllerListener): | ||
def received_gesture_event(self, event): | ||
if isinstance(event, nuimo.GestureEvent): | ||
print(event.value) | ||
logging.info("Received gesture: %s", event.value) | ||
|
||
def started_connecting(self): | ||
print("Connecting...") | ||
logging.info("Connecting...") | ||
|
||
def connect_succeeded(self): | ||
print("Connecting succeeded!") | ||
logging.info("Connecting succeeded!") | ||
|
||
def connect_failed(self, error): | ||
print("Connecting failed!") | ||
logging.info("Connecting failed!") | ||
|
||
def started_disconnecting(self): | ||
print("Disconnecting...") | ||
logging.info("Disconnecting...") | ||
|
||
def disconnect_succeeded(self): | ||
print("Nuimo disconnected!") | ||
logging.info("Nuimo disconnected!") |