Add Input::scrollV() to query vertical mouse wheel scroll events
This commit is contained in:
		
							parent
							
								
									e2bbcde85d
								
							
						
					
					
						commit
						e32aa71f4b
					
				
					 5 changed files with 31 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -115,6 +115,13 @@ RB_METHOD(inputMouseY)
 | 
			
		|||
	return rb_fix_new(shState->input().mouseY());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
RB_METHOD(inputScrollV)
 | 
			
		||||
{
 | 
			
		||||
	RB_UNUSED_PARAM;
 | 
			
		||||
 | 
			
		||||
	return rb_fix_new(shState->input().scrollV());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
struct
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -168,6 +175,7 @@ inputBindingInit()
 | 
			
		|||
 | 
			
		||||
	_rb_define_module_function(module, "mouse_x", inputMouseX);
 | 
			
		||||
	_rb_define_module_function(module, "mouse_y", inputMouseY);
 | 
			
		||||
	_rb_define_module_function(module, "scroll_v", inputScrollV);
 | 
			
		||||
 | 
			
		||||
	if (rgssVer >= 3)
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue