# SetJoystickScreenPosition

## Description

The AGK joystick is an emulated input method that uses whatever device inputs are available to produce a joystick style input in the range -1 to 1. This command positions a virtual joystick on screen only if it is necessary to emulate this input. For example if a real joystick or keyboard are available then this command has no noticable effect. It is recommended that you always call this command anyway if you intend to use GetAGKJoystickX or GetAGKJoystickY just incase a virtual joystick is needed. Any virtual joystick will be centered on the given X and Y position.

## Definition

SetJoystickScreenPosition( x, y, size )

void agk::SetJoystickScreenPosition( float x, float y, float size )

## Parameters

- x - The X coordinate of the new position in screen coordinates.
- y - The Y coordinate of the new position in screen coordinates.
- size - The diameter of the joystick in screen coordinates.