DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Keyboard navigation buttons to mimic the action of drag or swipe  (Read 4,928 times)

siddhu.iam

  • Participant
  • Joined in 2012
  • *
  • Posts: 11
This is mainly to play touchscreen games like temple run or subway surfers on the big hd screens of computers using keyboard controls.
My rough algorithm is:

if input is      ( 'left' key ),
output is      ( move pinter to centre of screen , then hold left mouse button, then move mouse pointer about 2 centimeters to left, then release left mouse button.)

if input is      ( 'up' key ),
output is      ( move pinter to centre of screen , then hold left mouse button, then move mouse pointer about 2 centimeters upwards, then release left mouse button.)

if input is      ( 'right' key ),
output is      ( move pinter to centre of screen , then hold left mouse button, then move mouse pointer about 2 centimeters to right, then release left mouse button.)

if input is    ( 'down' key ),
output is  ( move pinter to centre of screen , then hold left mouse button, then move mouse pointer about 2 centimeters downwards, then release left mousebutton.)

Original address: https://www.donationcoder.com/forum/index.php?topic=32770.0