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

Combined keyboard touch don't trigger wnd.Event #35

Open
Hamstermythe opened this issue Mar 10, 2023 · 0 comments
Open

Combined keyboard touch don't trigger wnd.Event #35

Hamstermythe opened this issue Mar 10, 2023 · 0 comments

Comments

@Hamstermythe
Copy link

Hamstermythe commented Mar 10, 2023

'

wnd.KeyDown = func(scancode int, rn rune, name string) {
	switch name {
	//french Keyboard
	case "Digit1":
		//print("digit1\n")
		buttonUtility(name, souris.X, souris.Y)
	case "Digit2":
		//print("digit2\n")
		buttonUtility(name, souris.X, souris.Y)
	case "Digit3":
		print("digit3\n")
		buttonUtility(name, souris.X, souris.Y)
	case "KeyW":
		//print("	z\n")
		thisPlayer.H = true
		thisPlayer.B = false
	case "KeyA":
		//print("	q\n")
		thisPlayer.G = true
		thisPlayer.D = false
	case "KeyS":
		//print("	s\n")
		thisPlayer.B = true
		thisPlayer.H = false
	case "KeyD":
		//print("	d\n")
		thisPlayer.Droite = true
		thisPlayer.Gauche = false

}'
all my programm run correctly, execpt some event:

  • keyboard touch 3 don't trigger event whenever key s and key d are downed
    • keyboard touch 1 don't trigger event whenever key q and key s are downed
      PS: im on french keyboard

someone know why that don't work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant