Questions tagged [event-handling]
Event handling is a coding pattern related to acting on messages between a source and one or more subscribers. A point listener in the source provides a way in which subscribed code can consume messages raised from the source.
477
questions
1
vote
1
answer
42
views
Listening to bootstrap 5 events in a vuejs application
Starting out with VueJS, making a small fun project. The project is a simple static portfolio website, with a navigation bar at the top and a bootstrap scrollspy, jumping to the different sections (I ...
4
votes
3
answers
165
views
Get the contents of a table cell for all selected rows
I have a table of user info. When you click the button, I want to get the email address from each selected row, output into a comma-separated string.
I got it to work with the following code, but I'm ...
3
votes
1
answer
92
views
Simple C++ event loop - static vs dynamic dispatch performance
I have two extremely simple toy implementations of an event loop, and would like to understand the performance differences between them.
First impl - events with a virtual 'handle' method - dynamic ...
0
votes
0
answers
31
views
Messaging correlation and syncing
We use masstransit and sagas. But I also wanted to correlate some messages without the need for a saga since the syntax for those are pretty verbose if all your need is to sync on a correlation id.
...
1
vote
1
answer
67
views
Event manager based on decorators
This module is a simple event manager that works with decorators. I would like feedback on:
Bugs
Any ideas to get rid of the classevent decorator, which ...
3
votes
1
answer
102
views
A Windows localhost key logger in C++ with WinAPI
Now I have this repository. It's a key logger logging all the keyboard events possible. Note that some programs do not "leak" the keyboard events outside of their GUI. For example, Notepad++ ...
11
votes
2
answers
2k
views
CAT: Cat Approved TUIs
Cat
Hello everyone! I am working on this TUI framework which aims to abstract the ncurses library. I was wondering how understandable it is, and what I can improve! Any feedback is welcome!!
My ...
1
vote
0
answers
44
views
A JavaFX program to find out the mouse refresh rate v3
(This post is the continuation of A JavaFX program to find out the mouse refresh rate v2.)
After taking @J_H's suggestions into account, I ended up here:
...
3
votes
1
answer
61
views
A JavaFX program to find out the mouse refresh rate v2
(See the continuation of this post in A JavaFX program to find out the mouse refresh rate v3.)
(This post is a continuation of A JavaFX program to find out the mouse refresh rate.)
After adopting the ...
2
votes
1
answer
83
views
A JavaFX program to find out the mouse refresh rate
(See the next version here.)
Intro
I have this tiny JavaFX program that shows a 800x600 pixel canvas. You are supposed to drag the mouse within the canvas. When you are done dragging, the program will ...
0
votes
0
answers
165
views
Debouncing events and stale closures in functional React
Context
As part of our React application, in which we use functional components, we encountered a scenario where we needed to debounce parts of a DOM event listener for usability purposes. The actual ...
4
votes
1
answer
242
views
Improved Event System & InputManager Using C++
I am new to C++, so please take me easy. I want to make a low-level game engine only using C++, OpenGL and GLFW. This is a continuation of Event System using C++ ; I added the suggestions from there. ...
1
vote
0
answers
52
views
Event System in C++ [duplicate]
I am excited to share that I have developed an event system in C++. I have always been passionate about programming and have long aspired to create a low-level game engine solely using C++, OpenGL, ...
3
votes
2
answers
2k
views
Event System using C++
I am excited to share that I have developed an event system in C++. I have always been passionate about programming and have long aspired to create a low-level game engine solely using C++, OpenGL, ...
4
votes
2
answers
419
views
Detecting when a user stops typing
I wanted to detect when a user stops typing. I encountered this answer from SO (Not the selected answer, but the second one which seem to be better):
https://stackoverflow.com/a/5926782/17746636
But I ...