Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
yukun 2019-12-19 12:26:09 +01:00
commit 7641ca7966
2 changed files with 2 additions and 4 deletions

View File

@ -20,13 +20,11 @@ file(GLOB_RECURSE TESTS test/*.cpp)
include_directories(src) include_directories(src)
include_directories(test) include_directories(test)
#toml
include_directories(lib/toml)
set(LIB_PATH "${CMAKE_SOURCE_DIR}/../library") set(LIB_PATH "${CMAKE_SOURCE_DIR}/../library")
include_directories(${LIB_PATH}/include) include_directories(${LIB_PATH}/include)
add_executable(Terminal ${SOURCES} ${HEADERS} main/main.cpp src/Terminal.h src/Terminal.cpp) add_executable(Terminal ${SOURCES} ${HEADERS} main/main.cpp)
target_link_libraries(Terminal ${LIB_PATH}/lib/liblibrary.a) target_link_libraries(Terminal ${LIB_PATH}/lib/liblibrary.a)

View File

@ -117,7 +117,7 @@ int main() {
vkvm::registerEvent(vkvm::KeyUp, [&terminal]() { vkvm::registerEvent(vkvm::KeyUp, [&terminal]() {
vkvm::KeyCode keycode = vkvm::getLastPressedKey(); vkvm::KeyCode keycode = vkvm::getLastPressedKey();
if(((vkvm::KeyCode::ShiftLeft & 0xfff) == keycode) ||((vkvm::KeyCode::ShiftRight & 0xfff) == keycode)){ if(((vkvm::KeyCode::ShiftLeft) == keycode) ||((vkvm::KeyCode::ShiftRight) == keycode)){
terminal.shiftup(); terminal.shiftup();
} }
// char ch = keycode - (vkvm::KeyCode::A & 0xfff) + 'A'; // char ch = keycode - (vkvm::KeyCode::A & 0xfff) + 'A';