예제 #1
0
static void scan_right_joystick_touchmapping(struct kp *kp)
{
	if (kp->suspend_flag) {
		kp->value[2] = 0x7f;
		kp->value[3] = 0x7f;
	} else {
		//left_h, left_v, right_h, right_v
		soc_value(kp->value);
	}
	scan_joystick_touchmapping(kp, 2);
	scan_joystick_touchmapping(kp, 3);
}
예제 #2
0
static void scan_left_joystick_touchmapping(struct kp *kp)
{
	int tmp;
	if (kp->suspend_flag) {
		kp->value[1] = 0x7f;
		kp->value[0] = 0x7f;
	} else {
		//left_h, left_v, right_h, right_v
		soc_value(kp->value);
	}
	scan_joystick_touchmapping(kp, 1);
	scan_joystick_touchmapping(kp, 0);
#if !VERTICAL
        tmp=kp->key_value[1];
        kp->key_value[1]=kp->key_value[0];
        kp->key_value[0]=tmp; 
#endif

}
예제 #3
0
static void scan_right_joystick_touchmapping(struct kp *kp)
{
	scan_joystick_touchmapping(kp, 0);
	scan_joystick_touchmapping(kp, 1);
}
예제 #4
0
static void scan_left_joystick_touchmapping(struct kp *kp)
{
	scan_joystick_touchmapping(kp, 2);
	scan_joystick_touchmapping(kp, 3);
}