mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	REVIEWED: GetMouseWheelMove(), avoid move scaling on PLATFORM_WEB
				
					
				
			Tested with latest emscripten 3.1.18
This commit is contained in:
		
							
								
								
									
										17
									
								
								src/rcore.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								src/rcore.c
									
									
									
									
									
								
							| @@ -3765,26 +3765,17 @@ float GetMouseWheelMove(void) | ||||
|     else result = (float)CORE.Input.Mouse.currentWheelMove.y; | ||||
| #endif | ||||
|  | ||||
| #if defined(PLATFORM_WEB) | ||||
|     result /= 100.0f; | ||||
| #endif | ||||
|  | ||||
|     return result; | ||||
| } | ||||
|  | ||||
| // Get mouse wheel movement X/Y as a vector | ||||
| Vector2 GetMouseWheelMoveV(void) | ||||
| { | ||||
| #if defined(PLATFORM_ANDROID) | ||||
|     return (Vector2){ 0.0f, 0.0f }; | ||||
| #endif | ||||
| #if defined(PLATFORM_WEB) | ||||
|     Vector2 result = CORE.Input.Mouse.currentWheelMove; | ||||
|     result.x /= 100.0f; | ||||
|     result.y /= 100.0f; | ||||
| #endif | ||||
|     Vector2 result = { 0 }; | ||||
|     | ||||
|     return CORE.Input.Mouse.currentWheelMove; | ||||
|     result = CORE.Input.Mouse.currentWheelMove; | ||||
|  | ||||
|     return result; | ||||
| } | ||||
|  | ||||
| // Set mouse cursor | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ray
					Ray