Channel circle › core 0 System (NetXecChannel) › event
event (core 0, sub 3, flat id 3)
22 functions
| Signature | Purpose | Source | Scope |
|---|---|---|---|
| struct EventChannel * OpenEventChannel(void) | (no comment) | EventChannel.c:26 | public |
| void CloseEventChannel(struct EventChannel *ec) | CloseEventChannel | EventChannel.c:81 | public |
| int EventChannelPush(struct EventChannel * restrict ec, uint64_t code) | Push ? single producer (main loop) Writes one 64-bit bytecode into the ring. If the ring is full, | EventChannel.c:110 | public |
| int EventChannelPop(struct EventChannel * restrict ec, uint64_t * restrict out) | Pop ? single consumer Reads one 64-bit bytecode if one is available. | EventChannel.c:136 | public |
| uint32_t EventChannelCount(const struct EventChannel *ec) | Diagnostics | EventChannel.c:152 | public |
| uint64_t EventChannelLast(const struct EventChannel *ec) | (no comment) | EventChannel.c:158 | public |
| static int EventOp(struct EventChannel *c, uint32_t op, uint32_t a, uint64_t b) | (no comment) | EventChannel.c:167 | static |
| static void EventRd(struct EventChannel *c, uint32_t *m, uint32_t *a, uint64_t *b) | (no comment) | EventChannel.c:173 | static |
| int EventChannelOpBlockCheck(void) | 0 = every registered block is well-formed and collides with no other block and no fixed CHEV op (CHEV_OPEN, CHEV_CLOSE, CHEV_EDIT_CHANGED..CHEV_EDIT_CLOSED); else the 1-based row of the first bad block. | EventChannel.c:192 | public |
| int EventChannelEmscriptenRoute(uint64_t chev) | row index for a Channel Event code whose core/sub are 7/15 and op is in the block, else -1 | EventChannel.c:229 | public |
| int EventChannelEmscriptenCheck(void) | 0 = rows are the contiguous block FIRST..LAST in order, 7/15/127, CHEV_MAKE round-trips, and the block hits no fixed CHEV op (overlap with other channels' op blocks is checked by apply.sh --check); else 1-based row / 100+ code of the first | EventChannel.c:238 | public |
| void EventWireStateInit(struct EventWireState *st) | (no comment) | EventWire.c:11 | public |
| static uint32_t ModsFromSDL(uint32_t km) | (no comment) | EventWire.c:16 | static |
| static int32_t Clamp16(float v) | (no comment) | EventWire.c:28 | static |
| static uint32_t BtnBit(uint32_t b) | (no comment) | EventWire.c:36 | static |
| uint32_t EventWireKeyChar(uint32_t k, uint32_t evmods) | (no comment) | EventWire.c:46 | public |
| int EventWireFromSDL(struct EventWireState *st, const SDL_Event *ev, uint32_t keymod, uint64_t now_ms, struct EventRec *out) | (no comment) | EventWire.c:64 | public |
| void EventWireEncode(const struct EventRec *r, uint64_t w[2]) | (no comment) | EventWire.c:156 | public |
| void EventWireDecode(const uint64_t w[2], struct EventRec *r) | (no comment) | EventWire.c:183 | public |
| void EventWireToBytes(const uint64_t w[2], uint8_t out[16]) | (no comment) | EventWire.c:215 | public |
| void EventWireFromBytes(const uint8_t in[16], uint64_t w[2]) | (no comment) | EventWire.c:225 | public |
| void EventWireToSDLKey(const struct EventRec *r, SDL_Event *out) | (no comment) | EventWire.c:236 | public |