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,38 +105,37 @@ def ViewEmu(cL,xL,yL,cM,xM,yM,cR,xR,yR):
print("Curent Emu : " + str(res[cM]))
def leftKey(GetEmuMod):
global cpt
cpt = cpt - 1
if cpt < 0:
cpt = EmuCpt
Lcpt = cpt
Mcpt = cpt + 1
Rcpt = cpt + 2
if Mcpt > EmuCpt:
Mcpt = 0
Rcpt = 1
if Rcpt > EmuCpt:
Rcpt = 0
if GetEmuMod == 0:
global cpt
cpt = cpt - 1
if cpt < 0:
cpt = EmuCpt
Lcpt = cpt
Mcpt = cpt + 1
Rcpt = cpt + 2
if Mcpt > EmuCpt:
Mcpt = 0
Rcpt = 1
if Rcpt > EmuCpt:
Rcpt = 0
print("DEBUG : " + str(EmuMod) + " Emu : " + str(cpt))
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)
def rightKey(GetEmuMod):
global cpt
cpt = cpt + 1
if cpt > EmuCpt:
cpt = 0
Lcpt = cpt
Mcpt = cpt + 1
Rcpt = cpt + 2
if Mcpt > EmuCpt:
Mcpt = 0
Rcpt = 1
if Rcpt > EmuCpt:
Rcpt = 0
if GetEmuMod == 0:
global cpt
cpt = cpt + 1
if cpt > EmuCpt:
cpt = 0
Lcpt = cpt
Mcpt = cpt + 1
Rcpt = cpt + 2
if Mcpt > EmuCpt:
Mcpt = 0
Rcpt = 1
if Rcpt > EmuCpt:
Rcpt = 0
print("DEBUG : " + str(EmuMod) + " Emu : " + str(cpt))
ViewEmu(Lcpt,LeftSquareX, LeftSquareY,Mcpt,MiddleSquareX, MiddleSquareY,Rcpt,RightSquareX, RightSquareY)