Source

wd_pys60 / wd_key_press.py

Full commit
import keypress
from key_codes import *
import e32
def wd_key_press(*args):
    keypress.simulate_key(*args)
    e32.ao_sleep(0.1)
#print dir(keypress)
def right_soft():
    keypress.simulate_keyMenu() # Simulates Right Softkey
    e32.ao_sleep(0.1)

def left_soft():
    wd_key_press(EKeyLeftSoftkey, EScancodeLeftSoftkey) # Simulates Left Softkey

def down():
    wd_key_press(EKeyLeftArrow, EScancodeDownArrow) # Simulate Left arrow
def down():
    wd_key_press(EKeyDownArrow, EScancodeDownArrow) # Simulate Down arrow
def up():
    wd_key_press(EKeyUpArrow, EScancodeDownArrow) # Simulate Up arrow
def right():
    wd_key_press(EKeyRightArrow, EScancodeRightArrow) # Simulates Right arrow
def ok():
    wd_key_press(EKeySelect, EScancodeSelect) # Simulates Select key