mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	CoreTiming: Reworked CoreTiming (#3119)
* CoreTiming: New CoreTiming; Add Test for CoreTiming
This commit is contained in:
		
							parent
							
								
									b7cf793814
								
							
						
					
					
						commit
						e9a95b2e7d
					
				
					 18 changed files with 678 additions and 593 deletions
				
			
		| 
						 | 
				
			
			@ -9,6 +9,10 @@
 | 
			
		|||
#include "core/frontend/input.h"
 | 
			
		||||
#include "core/hle/service/ir/ir_user.h"
 | 
			
		||||
 | 
			
		||||
namespace CoreTiming {
 | 
			
		||||
struct EventType;
 | 
			
		||||
} // namespace CoreTiming
 | 
			
		||||
 | 
			
		||||
namespace Service {
 | 
			
		||||
namespace IR {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +40,7 @@ private:
 | 
			
		|||
    void LoadInputDevices();
 | 
			
		||||
 | 
			
		||||
    u8 hid_period;
 | 
			
		||||
    int hid_polling_callback_id;
 | 
			
		||||
    CoreTiming::EventType* hid_polling_callback_id;
 | 
			
		||||
    std::array<u8, 0x40> calibration_data;
 | 
			
		||||
    std::unique_ptr<Input::ButtonDevice> zl;
 | 
			
		||||
    std::unique_ptr<Input::ButtonDevice> zr;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -51,7 +51,7 @@ static_assert(sizeof(SharedMem) == 0x98, "SharedMem has wrong size!");
 | 
			
		|||
static Kernel::SharedPtr<Kernel::Event> update_event;
 | 
			
		||||
static Kernel::SharedPtr<Kernel::SharedMemory> shared_memory;
 | 
			
		||||
static u32 next_pad_index;
 | 
			
		||||
static int update_callback_id;
 | 
			
		||||
static CoreTiming::EventType* update_callback_id;
 | 
			
		||||
static std::unique_ptr<Input::ButtonDevice> zl_button;
 | 
			
		||||
static std::unique_ptr<Input::ButtonDevice> zr_button;
 | 
			
		||||
static std::unique_ptr<Input::AnalogDevice> c_stick;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue