8000 Fix keyboard and mouse input on Windows ARM64 by andreban · Pull Request #618 · not-fl3/miniquad · GitHub
[go: up one dir, main page]

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/native/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
let win_style: DWORD = get_win_style(self.fullscreen, self.window_resizable);

unsafe {
#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
SetWindowLongPtrA(self.wnd, GWL_STYLE, win_style as _);
#[cfg(tar 8000 get_arch = "x86")]
SetWindowLong(self.wnd, GWL_STYLE, win_style as _);
Expand Down Expand Up @@ -250,7 +250,7 @@
}
if GetKeyState(VK_CONTROL) as u32 & (1u32 << 31) != 0 {
mods.ctrl = true;
}

Check warning on line 253 in src/native/windows.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-pc-windows-gnu)

value assigned to `new_rect` is never read

Check warning on line 253 in src/native/windows.rs

View workflow job for this annotation

GitHub Actions / Build (windows-latest, x86_64-pc-windows-msvc)

value assigned to `new_rect` is never read
if GetKeyState(VK_MENU) as u32 & (1u32 << 31) != 0 {
mods.alt = true;
}
Expand Down Expand Up @@ -942,7 +942,7 @@

display.event_handler = Some(f());

#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
SetWindowLongPtrA(wnd, GWLP_USERDATA, &mut display as *mut _ as isize);
#[cfg(target_arch = "x86")]
SetWindowLong(wnd, GWLP_USERDATA, &mut display as *mut _ as isize);
Expand Down
Loading
0