Port ps2_usb to mbed
This commit is contained in:
		
							parent
							
								
									80c3ff5fa0
								
							
						
					
					
						commit
						4c8e0fd0bd
					
				
					 15 changed files with 343 additions and 90 deletions
				
			
		| 
						 | 
				
			
			@ -15,10 +15,11 @@ You should have received a copy of the GNU General Public License
 | 
			
		|||
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
#include "keymap_common.h"
 | 
			
		||||
#include "progmem.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* translates key to keycode */
 | 
			
		||||
uint8_t keymap_key_to_keycode(uint8_t layer, key_t key)
 | 
			
		||||
uint8_t keymap_key_to_keycode(uint8_t layer, keypos_t key)
 | 
			
		||||
{
 | 
			
		||||
    return pgm_read_byte(&keymaps[(layer)][(key.row)][(key.col)]);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue