bugs
This commit is contained in:
		
							parent
							
								
									f1649bf04d
								
							
						
					
					
						commit
						3de82b69c8
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								main.py
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								main.py
									
										
									
									
									
								
							| 
						 | 
					@ -39,9 +39,9 @@ def main(device_path, dest_ip, dest_port):
 | 
				
			||||||
            for e in d.events():
 | 
					            for e in d.events():
 | 
				
			||||||
                # We are only interested in absolute axis events
 | 
					                # We are only interested in absolute axis events
 | 
				
			||||||
                if e.type == libevdev.EV_ABS:
 | 
					                if e.type == libevdev.EV_ABS:
 | 
				
			||||||
                    if e.code == libevdev.EV_ABS.ABS_X:
 | 
					                    if e.code in [libevdev.EV_ABS.ABS_X libevdev.EV_ABS.ABS_MT_POSITION_X]:
 | 
				
			||||||
                        x_coor = e.value
 | 
					                        x_coor = e.value
 | 
				
			||||||
                    elif e.code == libevdev.EV_ABS.ABS_Y:
 | 
					                    elif e.code in [libevdev.EV_ABS.ABS_Y libevdev.EV_ABS.ABS_MT_POSITION_Y]
 | 
				
			||||||
                        y_coor = e.value
 | 
					                        y_coor = e.value
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                # When we have both coordinates, send them
 | 
					                # When we have both coordinates, send them
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue