This commit is contained in:
Guillaume Astier Ruiz 2022-12-04 15:12:13 +01:00
parent 793627a265
commit 28067ed80d
2 changed files with 26 additions and 25 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
modules/__pycache__/arrow.cpython-310.pyc
modules/__pycache__/emulateur_display.cpython-310.pyc

View File

@ -105,6 +105,7 @@ def ViewEmu(cL,xL,yL,cM,xM,yM,cR,xR,yR):
print("Curent Emu : " + str(res[cM]))
def leftKey(GetEmuMod):
if GetEmuMod == 0:
global cpt
cpt = cpt - 1
if cpt < 0:
@ -117,11 +118,12 @@ def leftKey(GetEmuMod):
Rcpt = 1
if Rcpt > EmuCpt:
Rcpt = 0
if GetEmuMod == 0:
print("DEBUG : " + str(EmuMod) + " Emu : " + str(cpt))
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)
def rightKey(GetEmuMod):
if GetEmuMod == 0:
global cpt
cpt = cpt + 1
if cpt > EmuCpt:
@ -134,9 +136,6 @@ def rightKey(GetEmuMod):
Rcpt = 1
if Rcpt > EmuCpt:
Rcpt = 0
if GetEmuMod == 0:
print("DEBUG : " + str(EmuMod) + " Emu : " + str(cpt))
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)