.. _program_listing_file_include_judge_Loop_Match_Keyboard.cpp: Program Listing for File Keyboard.cpp ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include\judge\Loop\Match\Keyboard.cpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include "PDJE_Judge_Init_Structs.hpp" #include "PDJE_Match.hpp" #include "PDJE_Note_OBJ.hpp" #include namespace PDJE_JUDGE { template <> void Match::UseEvent(const PDJE_Input_Log &ilog) { RAIL_KEY::KB_MOUSE key; key.Device_Name.assign(ilog.name, ilog.name_len); key.DeviceKey = ilog.event.keyboard.k; auto res = init->raildb.GetID(key); if (!res) { return; } if (ilog.event.keyboard.pressed) { init->note_objects->Get( pre->use_range, res.value(), found_list); Work(ilog.microSecond, found_list, res.value(), true); } else { init->note_objects->Get( pre->use_range, res.value(), found_list); Work(ilog.microSecond, found_list, res.value(), false); } } }; // namespace PDJE_JUDGE