Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the 'int' of vlang different from the 'int' of clang? #21794

Open
KingBes opened this issue Jul 3, 2024 · 0 comments
Open

Is the 'int' of vlang different from the 'int' of clang? #21794

KingBes opened this issue Jul 3, 2024 · 0 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@KingBes
Copy link

KingBes commented Jul 3, 2024

Describe the bug

vlang

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.

@KingBes KingBes added the Bug This tag is applied to issues which reports bugs. label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

1 participant