Search
Setup for Free
S
Silk.NET
•
3y ago
Lyris the Kitori
are you using our GLFW bindings directly or are you using Silk.NET.Windowing
are you using our GLFW bindings directly or are you using Silk
.NET
.Windowing
Silk.NET
Join
A Discord server for the Silk.NET - your one-stop-shop for high-speed .NET multimedia, graphics, and compute. FOSS.
1,790
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
L
Lyris the Kitori
OP
•
4/4/23, 9:54 AM
oh the message is gone
L
Lyris the Kitori
are you using our GLFW bindings directly or are you using Silk.NET.Windowing
F
fornite
•
4/4/23, 9:54 AM
glfw
L
Lyris the Kitori
oh the message is gone
F
fornite
•
4/4/23, 9:54 AM
i feel like this is a stupid mistake so ill figure it out on my own
F
fornite
•
4/4/23, 10:01 AM
is this how im supposed to create a key call back
F
fornite
is this how im supposed to create a key call back
A
Aqua
•
4/4/23, 10:15 AM
take a look at
https://github.com/piegfx/Pie/blob/master/Pie.Windowing/Window.Events.cs
if you want to see how to implement many of the glfw callbacks
A
Aqua
take a look at <https://github.com/piegfx/Pie/blob/master/Pie.Windowing/Window.E...
F
fornite
•
4/4/23, 10:25 AM
question
F
fornite
•
4/4/23, 10:25 AM
so i finally got the key call back thing to work
F
fornite
•
4/4/23, 10:25 AM
do i make a system for detecting when like a button is released or something
F
fornite
•
4/4/23, 10:26 AM
or are there functions for that already
F
fornite
•
4/4/23, 10:26 AM
i could make an list of strings and when a button is first pressed the corresponding key string is put into the list
F
fornite
•
4/4/23, 10:26 AM
and when it is let go
F
fornite
•
4/4/23, 10:26 AM
it is removed
F
fornite
•
4/4/23, 10:26 AM
and like that i could detect like released and pressed etc
F
fornite
•
4/4/23, 10:45 AM
would it be better to have char callbacks or key callbacks
F
fornite
•
4/4/23, 10:45 AM
wouldnt it make sense for char callbacks to be used instead cus it would support a larger range of keyboard inputs
?
L
Lyris the Kitori
OP
•
4/4/23, 10:46 AM
:itdepends
:
L
Lyris the Kitori
OP
•
4/4/23, 10:46 AM
that emoji isnt in here rip
F
fornite
wouldnt it make sense for char callbacks to be used instead cus it would support...
L
Lyris the Kitori
OP
•
4/4/23, 10:54 AM
char inputs are meant for text boxes
L
Lyris the Kitori
OP
•
4/4/23, 10:54 AM
key inputs are meant for game actions
L
Lyris the Kitori
OP
•
4/4/23, 10:54 AM
such as
"move right
" or
"pause
" or
"choose item slot 2
"
L
Lyris the Kitori
key inputs are meant for game actions
F
fornite
•
4/4/23, 11:17 AM
ah okay
F
fornite
•
4/4/23, 11:32 AM
how do i set the position of a cursor
L
Lyris the Kitori
OP
•
4/4/23, 11:32 AM
mouse
?
F
fornite
•
4/4/23, 11:33 AM
wym
L
Lyris the Kitori
OP
•
4/4/23, 11:33 AM
do you mean a mouse cursor
?
F
fornite
•
4/4/23, 11:33 AM
oh yeah
F
fornite
•
4/4/23, 11:33 AM
im using glfw
L
Lyris the Kitori
OP
•
4/4/23, 11:33 AM
what reason do you need to
?
L
Lyris the Kitori
what reason do you need to?
F
fornite
•
4/4/23, 11:34 AM
i wanna make a function that lets me set the position of a cursor
F
fornite
•
4/4/23, 11:34 AM
so that
F
fornite
•
4/4/23, 11:34 AM
well just to learn
L
Lyris the Kitori
OP
•
4/4/23, 11:34 AM
ah
, it
's somewhere in the glfw docs
L
Lyris the Kitori
OP
•
4/4/23, 11:34 AM
it can do so iirc
F
fornite
•
4/4/23, 11:34 AM
yeah im looking but
F
fornite
yeah im looking but
F
fornite
•
4/4/23, 11:35 AM
i can only find like setting callbacks and stuff
F
fornite
how do i set the position of a cursor
A
Aqua
•
4/4/23, 11:45 AM
glfwSetCursorPos
glfwSetCursorPos
iirc
F
fornite
•
4/4/23, 12:35 PM
when im detecting the scroll wheel what happens is if i move it lets say up
F
fornite
•
4/4/23, 12:35 PM
and then let go
F
fornite
•
4/4/23, 12:35 PM
its still gonna keep counting it as up
F
fornite
•
4/4/23, 12:35 PM
so is there any way to prevent that
F
fornite
•
4/4/23, 12:36 PM
so that it goes back to 0
,0 when i stop scrolling up
F
fornite
its still gonna keep counting it as up
A
Aqua
•
4/4/23, 12:37 PM
no
? the scroll callback is called when the wheel is scrolled and just returns the offset since the last time the callback was called
so it resets itself
A
Aqua
no? the scroll callback is called when the wheel is scrolled and just returns th...
F
fornite
•
4/4/23, 3:43 PM
ohh
F
fornite
•
4/4/23, 3:43 PM
can i somehow check if a certain input event is called during a frame
F
fornite
•
4/4/23, 3:43 PM
rather than having a callback thing
F
fornite
•
4/5/23, 9:09 AM
are the input callbacks called every frame if i hold down that input
L
Lyris the Kitori
OP
•
4/5/23, 9:11 AM
this feels quite easy to test
F
fornite
•
4/5/23, 9:30 AM
so its not every frame
F
fornite
•
4/5/23, 9:34 AM
im so stuck on this bit
F
fornite
•
4/5/23, 9:35 AM
instead of a callback method to an input event is there not any way to test with an if statement
Next page
glfwSetCursorPos
glfwSetCursorPos
Similar Threads
Silk.NET Interactive
S
Silk.NET / team-talk
4y ago