Hello
Code used to replicate this behaviour:
// this example should work with AGK V1 and V2
// use wasd keys or on screen joystick to move the camera
// camera will forward, backward, left and right parallel to the boxes
// make cubes and arrange in a grid pattern
i = 0
for z = 0 to 4
for x = 0 to 4
inc i
CreateObjectBox(i,20,20,20)
SetObjectPosition(i,x*40,10,z*40)
next x
next z
// set variables for camera's starting position
pos_x# = 0
pos_y# = 100
pos_z# = -100
// orientate camera
SetCameraRotation(1,30,0,0)
// main loop
do
// player input
joystick_x# = GetJoystickX()
joystick_y# = GetJoystickY()
// move camera
pos_x# = pos_x# + joystick_x#*1
pos_z# = pos_z# - joystick_y#*10
// position camera
SetCameraPosition(1,pos_x#,pos_y#,pos_z#)
sync()
loop
Not my code, found somewhere in the docs.
I live in Belgium, and we use AZERTY keyboards here, just like in France.
When I run the example, it recognizes that and I can use ZQSD instead of WASD. No problems, works perfectly.
Export this code to HTML5 and it doesn't, I have to use WASD, which is very odd on a AZERTY keyboard.
I suspect this is a bug in the HTML5 code, as this works perfect on desktop (tested on OSX).
Or is there another way to handle different keyboard layouts?
Thanks