nomad-software / x11

Bindings to X11 for the D programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two typos in extensions/XInput.d

tychonievich opened this issue · comments

XInput.d line 34 is
auto FindTypeAndClass(A,B,C,D,E)(ref A d, ref B type, ref C _class, ref D classid, ref E offset){
but FindTypeAndClass is invoked with enum values for its last to arguments on lines 46–136 and enums are evaluated as values at compile time and cannot be passed by reference; it ought to be
auto FindTypeAndClass(A,B,C,D,E)(ref A d, ref B type, ref C _class, D classid, E offset){
instead.

XInput.d line 713 is
alias XValuatorInfoPtr = XAxisInfo*;
It ought to be
alias XValuatorInfoPtr = XValuatorInfo*;
instead.