JoyStick: Difference between revisions
Jump to navigation
Jump to search
Wiki-admin (talk | contribs) No edit summary |
Wiki-admin (talk | contribs) No edit summary |
||
| Line 48: | Line 48: | ||
|} | |} | ||
=== | ===Presentation=== | ||
'''Example PCL code you can program a handle to send a marker:''' | '''Example PCL code you can program a handle to send a marker:''' | ||
active_buttons = 0; | |||
begin; | |||
picture { | |||
text { caption = " "; font_size = 16; } t_Text1; x = 0; y = 0; | |||
} P_Text; | |||
begin_pcl; | |||
joystick stick = response_manager.get_joystick( 1 ); | |||
loop int i = 1 | |||
until false | |||
begin | |||
stick.poll( ); | |||
t_Text1.set_caption("coordinates: " + string(stick.x()) + ":" + string(stick.y()), true); | |||
P_Text.present(); | |||
end; | |||
==== Python ==== | ==== Python ==== | ||