Can you post some code for us to review? Here are some functions I used in one of my projects, which ran both on Windows and Android. It only a part, so it cannot be compiled, but it should give you an idea. Also, AppGameKit comes with a lot of pre-installed examples. It has several that deal with 'input'. You can find these in '[Drive]:\Program Files (x86)\The Game Creators\AGK\Projects\Basic\Examples'. You should be able to compile and broadcast them, to see if the methods used work on all your devices.
` -------------------------------------------------------------------------------------
` define variables and add virtual joystick to the screen
` -------------------------------------------------------------------------------------
global JoyPosX# as float
global JoyPosY# as float
global ScrollRateX# as float
global ScrollRateY# as float
ScrollRateX# = 4
ScrollRateY# = 4
AddVirtualJoystick(1, 48, GetDeviceHeight() - 32, 96)
` -------------------------------------------------------------------------------------
` function to check user input
` -------------------------------------------------------------------------------------
function CheckInput()
// move with cursor keys and joystick
JoyPosX# = (GetVirtualJoystickX( 1 ) * 2.0) + GetRawKeyState( 39 ) - GetRawKeyState( 37 )
JoyPosY# = (GetVirtualJoystickY( 1 ) * 2.0) + GetRawKeyState( 40 ) - GetRawKeyState( 38 )
endfunction
` -------------------------------------------------------------------------------------
` function to scroll the camera viewport (mainly for debugging purposes)
` -------------------------------------------------------------------------------------
function MoveViewOffSet()
// Check to see if user pushes stick and view is within allowed range.
// If it is: scroll view by rate stick is pushed (-4 to 4).
if JoyPosX# <= -ScrollRateX# or JoyPosX# >= ScrollRateX#
if CamPosX# >= LevelMin# and CamPosX# <= LevelMax# then CamPosX# = CamPosX# + JoyPosX#
endif
if JoyPosY# <= -ScrollRateY# or JoyPosY# >= ScrollRateY#
if CamPosY# >= 0 and CamPosY# <= Level[2].Height then CamPosY# = CamPosY# + JoyPosY#
endif
if CamPosX# < (LevelMin# + GetVirtualWidth()) then CamPosX# = LevelMin# + GetVirtualWidth()
if CamPosX# > (LevelMax# - GetVirtualWidth()) then CamPosX# = LevelMax# - GetVirtualWidth()
if CamPosY# < 0 then CamPosY# = 0
if CamPosY# > 0 then CamPosY# = 0
endfunction