1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

fix typo in file name

This commit is contained in:
Andrey Filipenkov 2022-09-29 12:47:31 +03:00
parent 4a7d290112
commit e8a1709fc4
4 changed files with 12 additions and 12 deletions

View File

@ -148,14 +148,14 @@ set(client_HEADERS
if(APPLE_IOS)
set(client_SRCS ${client_SRCS}
CFocusableHelper.cpp
ios/GameChatKeyboardHanlder.m
ios/GameChatKeyboardHandler.m
ios/main.m
ios/startSDL.mm
ios/utils.mm
)
set(client_HEADERS ${client_HEADERS}
CFocusableHelper.h
ios/GameChatKeyboardHanlder.h
ios/GameChatKeyboardHandler.h
ios/startSDL.h
ios/utils.h
)

View File

@ -1,5 +1,5 @@
/*
* GameChatKeyboardHanlder.h, part of VCMI engine
* GameChatKeyboardHandler.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
@ -12,7 +12,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface GameChatKeyboardHanlder : NSObject
@interface GameChatKeyboardHandler : NSObject
@property (nonatomic, weak) UITextField * textFieldSDL;

View File

@ -1,5 +1,5 @@
/*
* GameChatKeyboardHanlder.m, part of VCMI engine
* GameChatKeyboardHandler.m, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
@ -8,7 +8,7 @@
*
*/
#import "GameChatKeyboardHanlder.h"
#import "GameChatKeyboardHandler.h"
#include <SDL_events.h>
@ -32,11 +32,11 @@ static CGRect keyboardFrameBegin(NSNotification * n) { return keyboardFrame(n, U
static CGRect keyboardFrameEnd (NSNotification * n) { return keyboardFrame(n, UIKeyboardFrameEndUserInfoKey); }
@interface GameChatKeyboardHanlder ()
@interface GameChatKeyboardHandler ()
@property (nonatomic) BOOL wasChatMessageSent;
@end
@implementation GameChatKeyboardHanlder
@implementation GameChatKeyboardHandler
- (void)triggerInput {
__auto_type notificationCenter = NSNotificationCenter.defaultCenter;
@ -99,7 +99,7 @@ static int watchReturnKey(void * userdata, SDL_Event * event)
{
if(event->type == SDL_KEYDOWN && event->key.keysym.scancode == SDL_SCANCODE_RETURN)
{
__auto_type self = (__bridge GameChatKeyboardHanlder *)userdata;
__auto_type self = (__bridge GameChatKeyboardHandler *)userdata;
self.wasChatMessageSent = YES;
SDL_DelEventWatch(watchReturnKey, userdata);
}

View File

@ -8,7 +8,7 @@
*
*/
#import "startSDL.h"
#import "GameChatKeyboardHanlder.h"
#import "GameChatKeyboardHandler.h"
#include "../Global.h"
#include "CMT.h"
@ -23,7 +23,7 @@
#import <UIKit/UIKit.h>
@interface SDLViewObserver : NSObject <UIGestureRecognizerDelegate>
@property (nonatomic, strong) GameChatKeyboardHanlder * gameChatHandler;
@property (nonatomic, strong) GameChatKeyboardHandler * gameChatHandler;
@end
@implementation SDLViewObserver
@ -131,7 +131,7 @@ int startSDL(int argc, char * argv[], BOOL startManually)
{
@autoreleasepool {
auto observer = [SDLViewObserver new];
observer.gameChatHandler = [GameChatKeyboardHanlder new];
observer.gameChatHandler = [GameChatKeyboardHandler new];
id __block sdlWindowCreationObserver = [NSNotificationCenter.defaultCenter addObserverForName:UIWindowDidBecomeKeyNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
[NSNotificationCenter.defaultCenter removeObserver:sdlWindowCreationObserver];