Silence "unused" warnings
This commit is contained in:
		
							parent
							
								
									6a133cf04b
								
							
						
					
					
						commit
						8d3379ce0e
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -26,6 +26,8 @@
 | 
			
		|||
 | 
			
		||||
MRB_FUNCTION(inputUpdate)
 | 
			
		||||
{
 | 
			
		||||
	MRB_FUN_UNUSED_PARAM;
 | 
			
		||||
 | 
			
		||||
	gState->input().update();
 | 
			
		||||
 | 
			
		||||
	return mrb_nil_value();
 | 
			
		||||
| 
						 | 
				
			
			@ -63,22 +65,30 @@ MRB_FUNCTION(inputRepeat)
 | 
			
		|||
 | 
			
		||||
MRB_FUNCTION(inputDir4)
 | 
			
		||||
{
 | 
			
		||||
	MRB_FUN_UNUSED_PARAM;
 | 
			
		||||
 | 
			
		||||
	return mrb_fixnum_value(gState->input().dir4Value());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
MRB_FUNCTION(inputDir8)
 | 
			
		||||
{
 | 
			
		||||
	MRB_FUN_UNUSED_PARAM;
 | 
			
		||||
 | 
			
		||||
	return mrb_fixnum_value(gState->input().dir8Value());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Non-standard extensions */
 | 
			
		||||
MRB_FUNCTION(inputMouseX)
 | 
			
		||||
{
 | 
			
		||||
	MRB_FUN_UNUSED_PARAM;
 | 
			
		||||
 | 
			
		||||
	return mrb_fixnum_value(gState->input().mouseX());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
MRB_FUNCTION(inputMouseY)
 | 
			
		||||
{
 | 
			
		||||
	MRB_FUN_UNUSED_PARAM;
 | 
			
		||||
 | 
			
		||||
	return mrb_fixnum_value(gState->input().mouseY());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue