Skip to content

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

@Hamstermythe

Description

@Hamstermythe

'

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions