Comments (7)
Although I guess we could change it, idk @Ultz/silk-working-group what do you think?
from silk.net.
This is by design, you should really only be calling GetInput once and keeping track of the input context.
from silk.net.
If you want to keep it this way, then this has to be documented better. Moreover a method labeled "GetXYZ" should have no side-effects by design. I would not expect that a new context is created. This should be renamed to CreateInput
imho. With CreateInput
I would expect a new context. But even then this context should be registered and it is not, or am I missing something?
from silk.net.
Yeah I 100% agree with you. The only reason we purposely made it so that it creates a new context is we wanted to avoid people going window.GetInput().blah for every single input call as that’s a code smell.
from silk.net.
I’ll put it up to an working group vote now.
from silk.net.
You can rename it to CreateInput
to avoid your mentioned case.
from silk.net.
This was prematurely closed as this change was not implemented in InputWindowExtensions.
from silk.net.
Related Issues (20)
- MAUI project on Android using OpenXR HOT 1
- SDL API not loading on M-series Mac HOT 34
- Native symbol not found (Symbol: vkCreateSwapchainKHR) HOT 2
- WebGPU bindings are broken in 2.21.0 HOT 5
- [ID3DInclude] Custom include handler for D3D.Compile2() HOT 1
- Silk.NET.Vulkan work on iOS? HOT 1
- Interactive Silk.NET Windowing in Polyglot Notebooks HOT 1
- Can't build for iOS HOT 5
- Android Bluetooth permission question HOT 2
- ImGui is broken for OpenGL HOT 1
- Add iOS and Android platform for Silk.NET.WebGPU.Native.WGPU
- Android 14/API 34 RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED error HOT 3
- SymbolLoadingException HOT 2
- WebGPU ShaderStage missing Flags attribute HOT 2
- Silk.Net 2.21 window is stuck after minimizing HOT 4
- Issue with Silk.NET texture processing HOT 2
- Silk.Net.Core Project does not build because of RequiresLocationAttribute HOT 1
- [DXC] Missing CLSID guid generation
- Shaderc android support x68/64 and arm/arm64 support
- Question regarding Silt.NET.Windowing multi-threaded behavior?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silk.net.