@@ -547,7 +547,7 @@ func (h *x11EventHandler) handleEvents() bool {
547547 case C .ButtonPress , C .ButtonRelease :
548548 bevt := (* C .XButtonEvent )(unsafe .Pointer (xev ))
549549 ev := pointer.Event {
550- Type : pointer .Press ,
550+ Kind : pointer .Press ,
551551 Source : pointer .Mouse ,
552552 Position : f32.Point {
553553 X : float32 (bevt .x ),
@@ -557,7 +557,7 @@ func (h *x11EventHandler) handleEvents() bool {
557557 Modifiers : w .xkb .Modifiers (),
558558 }
559559 if bevt ._type == C .ButtonRelease {
560- ev .Type = pointer .Release
560+ ev .Kind = pointer .Release
561561 }
562562 var btn pointer.Buttons
563563 const scrollScale = 10
@@ -569,7 +569,7 @@ func (h *x11EventHandler) handleEvents() bool {
569569 case C .Button3 :
570570 btn = pointer .ButtonSecondary
571571 case C .Button4 :
572- ev .Type = pointer .Scroll
572+ ev .Kind = pointer .Scroll
573573 // scroll up or left (if shift is pressed).
574574 if ev .Modifiers == key .ModShift {
575575 ev .Scroll .X = - scrollScale
@@ -578,7 +578,7 @@ func (h *x11EventHandler) handleEvents() bool {
578578 }
579579 case C .Button5 :
580580 // scroll down or right (if shift is pressed).
581- ev .Type = pointer .Scroll
581+ ev .Kind = pointer .Scroll
582582 if ev .Modifiers == key .ModShift {
583583 ev .Scroll .X = + scrollScale
584584 } else {
@@ -587,11 +587,11 @@ func (h *x11EventHandler) handleEvents() bool {
587587 case 6 :
588588 // http://xahlee.info/linux/linux_x11_mouse_button_number.html
589589 // scroll left.
590- ev .Type = pointer .Scroll
590+ ev .Kind = pointer .Scroll
591591 ev .Scroll .X = - scrollScale * 2
592592 case 7 :
593593 // scroll right
594- ev .Type = pointer .Scroll
594+ ev .Kind = pointer .Scroll
595595 ev .Scroll .X = + scrollScale * 2
596596 default :
597597 continue
@@ -607,7 +607,7 @@ func (h *x11EventHandler) handleEvents() bool {
607607 case C .MotionNotify :
608608 mevt := (* C .XMotionEvent )(unsafe .Pointer (xev ))
609609 w .w .Event (pointer.Event {
610- Type : pointer .Move ,
610+ Kind : pointer .Move ,
611611 Source : pointer .Mouse ,
612612 Buttons : w .pointerBtns ,
613613 Position : f32.Point {
0 commit comments