add gesture to spell mapping
add get_p1/p2_input() functions