
;------------------------------------------------------------------------------------
InitSprite()
InitKeyboard()
InitMouse()
Dim tabdec.l (32,32)
OpenScreen(800, 600, 16, "Mouse")
StartDrawing(ScreenOutput())
; dessin d'un point:
Plot(63,64,RGB(128,0,128))
Plot(64,64,RGB(128,0,128))
Plot(65,64,RGB(128,0,128))
Plot(66,64,RGB(128,0,128))
Plot(65,63,RGB(128,0,128))
Plot(65,65,RGB(128,0,128))
FlipBuffers()
StopDrawing()
x = 100
y = 100
Repeat
ExamineKeyboard()
ExamineMouse()
If KeyboardReleased(#pb_key_u)
rr.l
StartDrawing(ScreenOutput())
;Plot(65,64,RGB(128,0,128))
rr=Point(65,64)
FlipBuffers()
StopDrawing()
Debug rr
EndIf
Until MouseButton(1) Or KeyboardPushed(#PB_Key_Escape)
End
;------------------------------------------------------------------------------------
Ca marche pas, je veux dire la variable rr doit contenir la valeur de rgb(128,0,128).
Par contre si on place un point dans les lignes avant de retrouver le point ca marche, ... est ce qu'il sagirait douno bugginous ???
