mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	hid: remove the touch field from PadState (#2557)
This commit is contained in:
		
				
					committed by
					
						
						Yuri Kunde Schlesner
					
				
			
			
				
	
			
			
			
						parent
						
							e2fa1ca5e1
						
					
				
				
					commit
					0dd007e9ba
				
			@@ -70,14 +70,12 @@ void EmuWindow::TouchPressed(unsigned framebuffer_x, unsigned framebuffer_y) {
 | 
			
		||||
              (framebuffer_layout.bottom_screen.bottom - framebuffer_layout.bottom_screen.top);
 | 
			
		||||
 | 
			
		||||
    touch_pressed = true;
 | 
			
		||||
    pad_state.touch.Assign(1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void EmuWindow::TouchReleased() {
 | 
			
		||||
    touch_pressed = false;
 | 
			
		||||
    touch_x = 0;
 | 
			
		||||
    touch_y = 0;
 | 
			
		||||
    pad_state.touch.Assign(0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void EmuWindow::TouchMoved(unsigned framebuffer_x, unsigned framebuffer_y) {
 | 
			
		||||
 
 | 
			
		||||
@@ -42,8 +42,6 @@ struct PadState {
 | 
			
		||||
        BitField<14, 1, u32> zl;
 | 
			
		||||
        BitField<15, 1, u32> zr;
 | 
			
		||||
 | 
			
		||||
        BitField<20, 1, u32> touch;
 | 
			
		||||
 | 
			
		||||
        BitField<24, 1, u32> c_right;
 | 
			
		||||
        BitField<25, 1, u32> c_left;
 | 
			
		||||
        BitField<26, 1, u32> c_up;
 | 
			
		||||
@@ -203,8 +201,6 @@ const PadState PAD_Y = {{1u << 11}};
 | 
			
		||||
const PadState PAD_ZL = {{1u << 14}};
 | 
			
		||||
const PadState PAD_ZR = {{1u << 15}};
 | 
			
		||||
 | 
			
		||||
const PadState PAD_TOUCH = {{1u << 20}};
 | 
			
		||||
 | 
			
		||||
const PadState PAD_C_RIGHT = {{1u << 24}};
 | 
			
		||||
const PadState PAD_C_LEFT = {{1u << 25}};
 | 
			
		||||
const PadState PAD_C_UP = {{1u << 26}};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user