v
v copied to clipboard
Is the 'int' of vlang different from the 'int' of clang?
Describe the bug
Reproduction Steps
#include <windows.h>
bool isKeyPressed(int key)
{
return GetAsyncKeyState(key) & 0x8000;
}
fn C.isKeyPressed(key int) int
pub fn is_key_pressed(key int)int
{
return C.isKeyPressed(key)
}
Expected Behavior
How to fix it?
Current Behavior
Listen for keyboard events
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.6
Environment details (OS name and version, etc.)
windows11
[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.