Enable cursor support
Enables the ability to use the cursor/mouse scripts. e.g. Shaz's Super Simple Mouse System https://forums.rpgmakerweb.com/index.php?threads/amaranths-super-simple-mouse-system-for-ace.17829/ works without relying in it's Win32API settings/Declarations
This commit is contained in:
		
							parent
							
								
									1f017a8278
								
							
						
					
					
						commit
						7a4de087f9
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -105,6 +105,8 @@ EventThread::EventThread()
 | 
				
			||||||
      showCursor(false)
 | 
					      showCursor(false)
 | 
				
			||||||
{}
 | 
					{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SDL_DisplayMode dm = {0};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void EventThread::process(RGSSThreadData &rtData)
 | 
					void EventThread::process(RGSSThreadData &rtData)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	SDL_Event event;
 | 
						SDL_Event event;
 | 
				
			||||||
| 
						 | 
					@ -119,6 +121,8 @@ void EventThread::process(RGSSThreadData &rtData)
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	fullscreen = rtData.config.fullscreen;
 | 
						fullscreen = rtData.config.fullscreen;
 | 
				
			||||||
 | 
						showCursor = rtData.config.showCursor;
 | 
				
			||||||
 | 
						SDL_GetDesktopDisplayMode(0, &dm);
 | 
				
			||||||
	int toggleFSMod = rtData.config.anyAltToggleFS ? KMOD_ALT : KMOD_LALT;
 | 
						int toggleFSMod = rtData.config.anyAltToggleFS ? KMOD_ALT : KMOD_LALT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	fps.lastFrame = SDL_GetPerformanceCounter();
 | 
						fps.lastFrame = SDL_GetPerformanceCounter();
 | 
				
			||||||
| 
						 | 
					@ -540,6 +544,7 @@ void EventThread::resetInputStates()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void EventThread::setFullscreen(SDL_Window *win, bool mode)
 | 
					void EventThread::setFullscreen(SDL_Window *win, bool mode)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						SDL_GetDesktopDisplayMode(0, &dm);
 | 
				
			||||||
	SDL_SetWindowFullscreen
 | 
						SDL_SetWindowFullscreen
 | 
				
			||||||
	        (win, mode ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
 | 
						        (win, mode ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
 | 
				
			||||||
	fullscreen = mode;
 | 
						fullscreen = mode;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue