From 33f9da393091fc6403ab71781598ea016d06ca0a Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 14 May 2016 16:11:52 -0400 Subject: [PATCH] added function keys --- 4ed_data.ctm | Bin 1156 -> 1188 bytes win32_4ed.cpp | 19 ++++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/4ed_data.ctm b/4ed_data.ctm index 2cd9fbb95974ac543017b7b2eba7608ff418a759..fb72ee7c9ceed5def43cb58fed4e97957201100e 100644 GIT binary patch delta 40 rcmZqST*A4bg+;+oROpP%x{HjA3=9mutPBhr#lBt!@tJ}AS3o`h>z)e3 delta 7 OcmZ3&*}}P@g#`c#jRJE3 diff --git a/win32_4ed.cpp b/win32_4ed.cpp index 4797ede7..a8566fc0 100644 --- a/win32_4ed.cpp +++ b/win32_4ed.cpp @@ -41,7 +41,6 @@ #include "4ed_dll_reader.cpp" #include "4ed_internal.h" -#include "4ed_win32_keyboard.cpp" #include "system_shared.h" #define FPS 30 @@ -1221,6 +1220,24 @@ keycode_init(){ keycode_lookup_table[VK_PRIOR] = key_page_up; keycode_lookup_table[VK_NEXT] = key_page_down; keycode_lookup_table[VK_ESCAPE] = key_esc; + + keycode_lookup_table[VK_F1] = key_f1; + keycode_lookup_table[VK_F2] = key_f2; + keycode_lookup_table[VK_F3] = key_f3; + keycode_lookup_table[VK_F4] = key_f4; + keycode_lookup_table[VK_F5] = key_f5; + keycode_lookup_table[VK_F6] = key_f6; + keycode_lookup_table[VK_F7] = key_f7; + keycode_lookup_table[VK_F8] = key_f8; + keycode_lookup_table[VK_F9] = key_f9; + + keycode_lookup_table[VK_F10] = key_f10; + keycode_lookup_table[VK_F11] = key_f11; + keycode_lookup_table[VK_F12] = key_f12; + keycode_lookup_table[VK_F13] = key_f13; + keycode_lookup_table[VK_F14] = key_f14; + keycode_lookup_table[VK_F15] = key_f15; + keycode_lookup_table[VK_F16] = key_f16; } internal LRESULT