Skip to content

Commit

Permalink
forgot import statement in macro
Browse files Browse the repository at this point in the history
  • Loading branch information
greaka committed May 24, 2021
1 parent debe2a2 commit 12277a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ fn build_wnd_filter(
unsafe fn abstract_wnd_filter (h_wnd: HWND, u_msg: UINT,
w_param: WPARAM, l_param: LPARAM
) -> UINT {
use ::arcdps::{WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, WM_SYSKEYUP};
match u_msg {
WM_KEYDOWN | WM_KEYUP | WM_SYSKEYDOWN | WM_SYSKEYUP => {
let key_down = u_msg & 1 == 0;
Expand Down Expand Up @@ -179,6 +180,7 @@ fn build_wnd_nofilter(
unsafe fn abstract_wnd_nofilter (h_wnd: HWND, u_msg: UINT,
w_param: WPARAM, l_param: LPARAM
) -> UINT {
use ::arcdps::{WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, WM_SYSKEYUP};
match u_msg {
WM_KEYDOWN | WM_KEYUP | WM_SYSKEYDOWN | WM_SYSKEYUP => {
let key_down = u_msg & 1 == 0;
Expand Down

0 comments on commit 12277a6

Please sign in to comment.