added factory method for joysticke event