mirror of
				https://gitlab.com/sortix/sortix.git
				synced 2023-02-13 20:55:38 -05:00 
			
		
		
		
	Ported kernel to new syscall API and started cleaning up the old one.
This commit is contained in:
		
							parent
							
								
									011e6eca95
								
							
						
					
					
						commit
						c705bf39ff
					
				
					 30 changed files with 375 additions and 169 deletions
				
			
		| 
						 | 
				
			
			@ -111,7 +111,7 @@ void Update()
 | 
			
		|||
	// Read the keyboard input from the user.
 | 
			
		||||
	unsigned method = System::Keyboard::POLL;
 | 
			
		||||
	uint32_t codepoint;
 | 
			
		||||
	while ( (codepoint = System::Keyboard::ReceieveKeystroke(method) ) != 0 )
 | 
			
		||||
	while ( (codepoint = System::Keyboard::ReceiveKeystroke(method) ) != 0 )
 | 
			
		||||
	{
 | 
			
		||||
		bool keyup = codepoint & DEPRESSED;
 | 
			
		||||
		if ( keyup ) { continue; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -185,7 +185,7 @@ void ReadInput()
 | 
			
		|||
{
 | 
			
		||||
	unsigned method = System::Keyboard::POLL;
 | 
			
		||||
	uint32_t codepoint;
 | 
			
		||||
	while ( (codepoint = System::Keyboard::ReceieveKeystroke(method) ) != 0 )
 | 
			
		||||
	while ( (codepoint = System::Keyboard::ReceiveKeystroke(method) ) != 0 )
 | 
			
		||||
	{
 | 
			
		||||
		bool keyup = codepoint & DEPRESSED;
 | 
			
		||||
		codepoint &= ~DEPRESSED;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -100,7 +100,7 @@ void Update()
 | 
			
		|||
	// Read the keyboard input from the user.
 | 
			
		||||
	unsigned method = System::Keyboard::POLL;
 | 
			
		||||
	uint32_t codepoint;
 | 
			
		||||
	while ( (codepoint = System::Keyboard::ReceieveKeystroke(method) ) != 0 )
 | 
			
		||||
	while ( (codepoint = System::Keyboard::ReceiveKeystroke(method) ) != 0 )
 | 
			
		||||
	{
 | 
			
		||||
		bool keyup = codepoint & DEPRESSED;
 | 
			
		||||
		if ( keyup ) { continue; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue