Some debug output
This commit is contained in:
@@ -10,7 +10,7 @@ from sys import exit
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
import pygame
|
import pygame
|
||||||
import RPi.GPIO as GPIO
|
#import RPi.GPIO as GPIO
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
### Configuration ###
|
### Configuration ###
|
||||||
@@ -219,6 +219,7 @@ def handle_keypress(key):
|
|||||||
|
|
||||||
def handle_mousebutton(key, pos):
|
def handle_mousebutton(key, pos):
|
||||||
"""Implements the actions for the different mousebutton events"""
|
"""Implements the actions for the different mousebutton events"""
|
||||||
|
print("Key="+str(key)+", pos="+str(pos))
|
||||||
# Take a picture
|
# Take a picture
|
||||||
if key == 1:
|
if key == 1:
|
||||||
take_picture()
|
take_picture()
|
||||||
|
|||||||
Reference in New Issue
Block a user