Skip to content

Instantly share code, notes, and snippets.

View MihailPreis's full-sized avatar
:octocat:
Say no more

Mihail Preis MihailPreis

:octocat:
Say no more
View GitHub Profile
@MihailPreis
MihailPreis / Keycodes.swift
Created April 22, 2021 12:49 — forked from swillits/Keycodes.swift
Swift Keyboard Keycodes
struct Keycode {
// Layout-independent Keys
// eg.These key codes are always the same key on all layouts.
static let returnKey : UInt16 = 0x24
static let enter : UInt16 = 0x4C
static let tab : UInt16 = 0x30
static let space : UInt16 = 0x31
static let delete : UInt16 = 0x33
static let escape : UInt16 = 0x35