mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	vertical sliders work on Android
This commit is contained in:
		| @@ -92,6 +92,11 @@ void handleclick(MOBPAR_FORMAL) { | |||||||
|         getcstat = 0; |         getcstat = 0; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |       else if(statkeys && getcstat == 'f') { | ||||||
|  |         bow::switch_fire_mode(); | ||||||
|  |         getcstat = 0; | ||||||
|  |         } | ||||||
|  |  | ||||||
|       else if(getcstat != SDLK_F1 && getcstat != 'i' && getcstat != 't') { |       else if(getcstat != SDLK_F1 && getcstat != 'i' && getcstat != 't') { | ||||||
|         int px = mousex < current_display->xcenter ? 0 : 1; |         int px = mousex < current_display->xcenter ? 0 : 1; | ||||||
|         int py = mousey < current_display->ycenter ? 0 : 1; |         int py = mousey < current_display->ycenter ? 0 : 1; | ||||||
| @@ -290,6 +295,8 @@ EX void mobile_draw(MOBPAR_FORMAL) { | |||||||
|  |  | ||||||
|   if(inmenu && !clicked && !lclicked) inmenu = false; |   if(inmenu && !clicked && !lclicked) inmenu = false; | ||||||
|  |  | ||||||
|  |   if(!clicked && !lclicked) invslider = false; | ||||||
|  |    | ||||||
|   bool keyreact = lclicked && !clicked; |   bool keyreact = lclicked && !clicked; | ||||||
|  |  | ||||||
| #if CAP_MENUSCALING   | #if CAP_MENUSCALING   | ||||||
| @@ -302,6 +309,7 @@ EX void mobile_draw(MOBPAR_FORMAL) { | |||||||
| #endif | #endif | ||||||
|    |    | ||||||
|   if(inslider) keyreact = true; |   if(inslider) keyreact = true; | ||||||
|  |   if(invslider || getcstat == PSEUDOKEY_LIST_SLIDER) keyreact = true; | ||||||
|  |  | ||||||
| #if CAP_ANDROIDSHARE | #if CAP_ANDROIDSHARE | ||||||
|   if(getcstat == 's'-96 && keyreact) { |   if(getcstat == 's'-96 && keyreact) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue